The length of the substring
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Lets start the numbering of characters in the string from . The substring is a sequence of characters that begins in position and ends in position . For given indexes and print the length of substring and all the characters of this substring not violating their order in the string.
Input
The first line contains string , which length is no more than . Second line contains two indexes and , where is the length of the string).
Output
In the first line print the length of the substring. In the second line print all characters of substring in the same order like in the string .
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 60%