3019 - 数字反转-2

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

Input

一行,一个整数n。-1,000,000,000 ≤ n ≤ 1,000,000,000。

Output

一行,一个整数,表示反转结果

Examples

Input

123

Output

321

Input

-380

Output

-83
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题