Problem list
Log in
#r02744 · Online Judge > GoldOJ

Reverse Four Integers

Bronze V 2.0 s 256 MB

Read four integers $A$, $B$, $C$, $D$ and print them in reverse order: $D$ $C$ $B$ $A$.

Input

Four integers $A$, $B$, $C$, $D$.

Output

Print $D$, $C$, $B$, $A$ separated by spaces.

Example 1

Input
1 2 3 4
Output
4 3 2 1

Example 2

Input
10 20 -50 0
Output
0 -50 20 10
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code