시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 19 16 15 83.333%

문제

In one of the beautiful cities of Afghanistan two sisters are going to program a simple game to help them solve their mathematics homework. Their homework asks them to calculate the sum and multiplication of two numbers. Your task is to help them to build a simple program for their homework.

입력

First line contains the number of test cases (T): 1 ≤ T ≤ 1000

Second line represents the number of problems.1 ≤ N ≤ 50

Next N lines contains two integer numbers. 0 ≤ number ≤ 20000

출력

For every input expecting two integer numbers, first one represents the addition of two given numbers and second represents the multiplication separated by space.

예제 입력 1

1
2
20 30
40 60

예제 출력 1

50 600
100 2400