All tasks
Easyio

Swap Two Numbers

Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0

Statement

One line contains two integers a and b separated by a space. Print them in the opposite order — first b, then a — on one line separated by a space.

Examples

Example 1
Input
1 2
Output
2 1
Example 2
Input
-5 10
Output
10 -5

Constraints

  • -10^9 ≤ a, b ≤ 10^9
Solve this task to unlock the editorial.

AI tutor

Stuck? Get a nudge — the tutor explains the idea, it never hands you the solution.