#T388. 数字反转

数字反转

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 (see Sample 2).

Input Format

An integer N.

Output Format

An integer representing the reversed new number.

123
321
-380
-83

Hint

【Data Range】
1,000,000,000N1,000,000,000-1,000,000,000 \leq N \leq 1,000,000,000
1,000,000,000N1,000,000,000-1,000,000,000 \leq N \leq 1,000,000,000

Source

NOIP2011-J1