eolymp
bolt
Try our new interface for solving problems
Problems

Reversal sequence

Reversal sequence

Given a sequence of integers. Want to display the sequence in reverse order. \InputFile The input file contains a sequence of integers: \textbf{a_1}, \textbf{a_2}, …, \textbf{a_n} (\textbf{--10^18} ≤ \textbf{a_i} ≤ \textbf{10^18}). Number of elements in the sequence does not exceed \textbf{100000}. \OutputFile Derive the output file sequence numbers from input file in reverse order.
Time limit 2 seconds
Memory limit 256 MiB
Input example #1
-60
Output example #1
-60
 
Source XXIII Russian National Olympiad in Informatics, Perm Sample Tour, 04/12/2011