#J0056. 【深基4.习3】[NOIP2011 普及组] 数字反转

【深基4.习3】[NOIP2011 普及组] 数字反转

Problem Description

Given an integer NN, please reverse the digits of this number to obtain a new number. The new number should also satisfy the common form of integers, meaning that unless the original number is zero, the highest digit of the reversed number should not be zero (see Example 2).

Input Format

An integer NN.

Output Format

An integer representing the reversed new number.

Sample

123
321
-380
-83

Constraints

Data Range

1,000,000,000N1,000,000,000-1,000,000,000 \leq N \leq 1,000,000,000