Problem 022: Addiply

Problem made by Lockheed Martin, is CodeQuest 2017 Problem 3
This problem has a difficulty of 5


Nowadays if you put two things together you need to come up with a cool name to describe the two things together, like Bennifer or Brangelina. In this problem, you will deal with the concepts of addition and multiplication. You will Addiply! Your task is to write a program which does simple addition and multiplication based on 2 input numbers.

Program Input


The first line of the file Prob03.in.txt will contain a positive integer T denoting the number of test cases that follow. Each test case will have the following input:

• A single line containing two positive integers separated by a space. The numbers will be small enough that they will not be bigger than Integer.MAX_VALUE when multiplied together.

Example Input:


3
2 2
5 4
3 8

Program Output


For each test case, your program should output 2 numbers: the first will be the result of adding the two input numbers, the other will be the result of multiplying the two input numbers. Separate your two answers with a single space.

Example Output:


4 4
9 20
11 24