시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB21371469139771.788%

문제

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).

T test cases follow. For each test case, the first line represents the number of problems. Next N lines contains two integer numbers Ai, Bi.

출력

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 ≤ T ≤ 10
  • 1 ≤ N ≤ 50
  • 0 ≤ Ai, Bi ≤ 20000

예제 입력 1

1
2
20 30
40 60

예제 출력 1

50 600
100 2400