Write a program that, given a string , removes every other letter from
starting at index
.
Input
Input consists of one line containing a (the) string
, and , where
denotes the length
of the string .
Output
Output consists of one line containing what remains of the
input string (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
|