问题2776--Og

2776: Og

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Og is a caveman with many children, and he wants to count them all. Og counts his sons with his left hand and his daughters with his right hand. However, Og is very dumb, and can’t add the two counts, so he asked you to write him a program that will do the addition.

输入

The input contains several test cases. Each test case consists of a single line containing two integers L and R, separated by a single space, indicating respectively the number of sons and daughters (1 <= L,R <= 5). The end of input is indicated by L = R = 0. The input must be read from standard input.

输出

For each test case in the input print a line containing a single integer indicating how many children Og has. The output must be written to standard output.

样例输入 Copy

2 2
2 3
5 5
1 1
0 0

样例输出 Copy

4
5
10
2

来源/分类