Hide

Problem B
Every Other Letter

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 \leq |s| \leq 10^6$, 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

Please log in to submit a solution to this problem

Log in