Arithmetic progressions
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Let be arithmetic progressions. It is known that
,
For the given positive integer find the value of .
Input
Three integers .
Output
Print the value of . It is known that output is no more than by absolute value.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 47%