Problem EM: 数字反转2

Problem EM: 数字反转2

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

SubmitProblemList

Description

给定一个整数,请将该数各个位上数字反转得到一个新数。新数也应满足整数的常见形式,即除非给定的原数为零,否则反转后得到的新数最高位不能是零

Input

输入共 1 行,一个整数N。0 ≤ N≤ 1,000,000,000。

Output

输出共 1 行,一个整数,表示反转后的新数。

Sample Input Copy

123

Sample Output Copy

321