The length of the substring#820

The length of the substring

1 second
128 megabytes
Very easy (≈850)

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 j~(1 \le i \le j \le size(S), where size(S) 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

Example 1

Loading
Loading