题目描述
Problem Description
Given an integer $N$, please reverse the digits of this number to obtain a new number. The new number should also be in the common form of integers, which means that unless the original number is zero, the highest digit of the new number after reversal should not be zero (see Sample 2).
Input Format
A single integer $N$.
Output Format
An integer representing the new number after reversal.
Sample Input and Output
Sample Input #1
123
Sample Output #1
321
Sample Input #2
-380
Sample Output #2
-83
Notes
[Data Range]
$-1,000,000,000 \leq N \leq 1,000,000,000$.
NOIP2011 Junior Group Problem 1
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
123
样例输出
321