Problem Description

Read two integers x and y. Do these updates in order: x=x+y, y=y+1, x=x-y. Output final x and y.

Input Format

One line: x y.

Output Format

One line: x y after updates.

Sample Test Case

Input:
10 5
Output:
9 6

Constraints

-10^9

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next