Simple Addition
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Let's define the next recursive function , where
Let's define the function as follows:
In this problem you have to calculate on given values of and .
Input
Consists of multiple test cases. Each line contains two nonnegative integers and . and will fit in bit signed integer. Input is terminated by a line with two negative integers. This line should not be processed.
Output
For each pair and print the value on a single line.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 22%