Infinite Sequence
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Consider an infinite sequence defined as follows:
,
You are given and . Find the value of .
Input
Three integers and .
Output
Print the value of .
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 5K
Acceptance rate 44%