You are given integers and , which are in base . Please print out the sum, and product of and in base .
Input Specification
The first line will contain the integer .
The second line will contain the integer .
The third line will contain the integer .
and will each contain at most digits, and each digit will be in the range . and will not contain leading zeros.
Output Specification
On the first line, output the sum of and .
On the second line, output the product of and .
Subtasks
Subtask 1 [20%]
Subtask 2 [80%]
No further constraints.
Sample Input
10
3
5
Sample Output
8
15
Comments