LearnPy Hub
← Tuples & Sets problems
Easy

Sum of Pairs

Read n, then n lines with two integers each. Store them as a list of tuples and print the sum of the first numbers and the sum of the second numbers.

Input

n, then n lines.

Output

Two numbers.

Sample 1

Input
2
1 2
3 4
Output
4 6

Sample 2

Input
1
5 5
Output
5 5
solution.py
Output appears here
Sum of Pairs · Python practice problem · LearnPy Hub