P7257 [COCI 2009/2010 #3] FILIP

Description

You are given two positive decimal integers $a, b$. Output the larger number after reversing these two numbers. **The definition of “reverse” in this problem is explained in the “Hint” section.**

Input Format

The first line contains two positive decimal integers $a, b$.

Output Format

Output the larger number after reversing $a$ and $b$.

Explanation/Hint

#### Definition of “reverse” in this problem Suppose the original number has $f$ digits: the highest digit is $a_1$, the second digit is $a_2$, $\ldots$, and the $f$-th digit is $a_f$. Then the reversed number also has $f$ digits: the highest digit is $a_f$, the second digit is $a_{f - 1}$, $\ldots$, and the $f$-th digit is $a_1$. #### Constraints For $100\%$ of the testdata, $100 \le a, b \le 999$, and $a, b$ do not contain the digit $0$. #### Notes Translated from [COCI 2009-2010 #3 T1 FILIP](https://hsin.hr/coci/archive/2009_2010/contest3_tasks.pdf). Full score is 30 points, 3 points per test case, with 10 test cases in total. Translated by ChatGPT 5