Hide

Problem B
Every Other Letter

Accepted submissions to this problem will be granted a score of 100

Write a program that, given a string s, removes every other letter from s starting at index 1.

Input

Input consists of one line containing a (the) string s, and 1|s|106, where |s| denotes the length of the string s.

Output

Output consists of one line containing what remains of the input string s (the odd-numbered characters), after the even-numbered characters have been removed.

Sample Input 1 Sample Output 1
engage
egg
Sample Input 2 Sample Output 2
weekend
weed
Sample Input 3 Sample Output 3
the prince is here
tepic shr
Sample Input 4 Sample Output 4
drainage
dang
Sample Input 5 Sample Output 5
thesaurus
tears
Sample Input 6 Sample Output 6
al
a
Hide

Please log in to submit a solution to this problem

Log in