All problems

Problem 779

Swap Two Numbers

Easy · 10 pts · Basics

Problem

Read two integers A and B, swap them, and print them in the new order: first the value that was B, then the value that was A. In a program this is usually done with a third temporary variable (temp = a; a = b; b = temp), or with a built-in swap. Practise the swap, then print the two variables in order.

Input

A single line with two integers A and B.

Output

Print B and A separated by a space.

Constraints

-10^9 <= A, B <= 10^9

Example input

3 8

Example output

8 3

Explanation

With A = 3 and B = 8, after swapping A holds 8 and B holds 3, so printing A then B gives 8 3.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Simple Interest Next: Sum of Squares up to N