Given an integer x, output the integer obtained by reversing its decimal digits. Input: x Output: reversed x