Fibonacci Strings
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Fibonacci sequence of strings is defined as follows:
,
,
for
For example, and so on.
Given positive integers . Print the substring of which starts at position and have the length .
Input
One line contains three space-separated positive integers and .
Output
Print the substring of which starts at position and have the length (the length of the printed substring may be less if the length of the remainder of the string , starting from position , is less than ).
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 3K
Acceptance rate 24%