#P7257. Reverse and Compare

    ID: 20457 Type: Default 1000ms 256MiB

Reverse and Compare

Reverse and Compare

Given two positive decimal integers \(a\) and \(b\), you are required to reverse these numbers and output the larger one. The reversal (\(\texttt{reverse}(n)\)) of a number is achieved by reading its digits from right to left. For example, \(\texttt{reverse}(123) = 321\) and \(\texttt{reverse}(100) = 1\) (leading zeros are dropped).

Note: The definition of "reverse" in this problem is as described above.

inputFormat

The input consists of a single line containing two positive integers \(a\) and \(b\) separated by a space.

outputFormat

Output the larger number after reversing \(a\) and \(b\).

sample

123 321
321