64. Sum and Difference (easy version, 100 points)

Time Limit: 1 seconds

Memory Limit: 1024 MB

Rating: 800

Problem Statement

Given 2 numbers $A$ and $B$, output their sum and difference. $(-10^9 \le A \le 10^9)$

Input

The first line has integer $A$. The second line has integer $B$.

Output

On the first line, output $A+B$. On the second line, output $A-B$.

Sample Cases
Sample Input 1:
2
1

Sample Output 1:
3
1
Explanation

$2 + 1 = 3$ $2 - 1 = 1$

Sources

IanOJ Contest #2 (Div. 4) > Problem D1 (Contributed by bronze@HungJan@)

Submit | Back