Header Ads Widget

A + B

 Problem:-

Problem Description

Given a series of integer pairs A and B, output the sum of A and B.

Input Format

Each line contains two integers, A and B. One input file may contain several pairs P where 0P12.

Output Format

Output a single integer per line - The sum of A and B.

Constraints

0A,B1098

Sample Input
1 2
2 5
10 14
Sample Output
3
7
24
Time Limit: 1
Memory Limit: 256
Source Limit:

Code:-

if __name__ == '__main__':
l=list(map(int,input().split()))
a,b=l
print(a+b)
while(l!=EOF):
l=list(map(int,input().split()))
a,b=l
print(a+b)