#Z14205. 数字反转
数字反转
Description
Given an integer, reverse the digits of the number to form a new number. The new number should also satisfy the common form of an integer, meaning that unless the original number is zero, the highest digit of the reversed number should not be zero. For example, if the input is -380, the reversed number should be -83.
Input Format
The input consists of 1 line, containing an integer N.
-1,000,000,000 ≤ N ≤ 1,000,000,000.
Output Format
The output consists of 1 line, containing an integer representing the reversed number.
123
321
-380
-83