367 - Add the Max
Add the Max
Time Limit: 1 sec
The Problem
Mr. Ant fined an interesting technique of summation. He named the technique is “Add the max”.
Here he is taking two numbers and returning two numbers by following his technique.
Your task is to find Mr. Ant’s technique of returning two numbers.
The Input
The input file contains several lines. Each line contains two integers x and y (0<= x, y <=30). Input is terminated by a line containing two zeroes.
The Output
For each line of input print two numbers in a separate line.
Sample Input
1 2
2 3
5 4
8 4
0 0
Sample Output
2 2
3 5
5 10
8 18
Problem Setter: Samia Safa Ahmed