Slicing 3
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a string s, answer the questions listed below.
Input data
One string s containing more than 10 characters. Indexation starts from 1.
Output
In separate lines print the answers to the following queries:
Word that is formed with the second, fourth and tenth character of the string s.
Word that is formed with the first, second and last character of the string s.
Word that is formed with the last five characters of the string s.
String s without the last four characters.
A word formed with all characters with odd indexes.
The length of the word from the previous query.
All odd characters of the string s in the reverse order, starting with the last.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 34%