#11Easy
Swap values
Time: 1 s · Memory: 256 MB
- Variables and types
Statement
You are given two variables and . Swap their values so that holds the value of and holds the value of . Then print and in this order.
Input format
A single line with two integers and ().
Output format
A single line with and after the swap.
Examples
Input
5 10
Output
10 5
Input
-3 7
Output
7 -3
Note
Writing a = b; b = a; leaves in both variables: the old value of is lost on the first line. Save it in a helper variable first: t = a; a = b; b = t;. In Python and Go a, b = b, a works too.
