P29572 [洛谷] [COCI2009-2010#3] FILIP
普及-
题目描述

Problem Description

You are given two positive decimal integers $a$ and $b$. Output the larger number after reversing these two numbers.

The definition of "reversing" in this problem is detailed in the "Notes/Hints" section.

Input Format

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

Output Format

The first line contains the larger number after reversing $a$ and $b$.

Sample Input and Output

Sample Input #1

734 893

Sample Output #1

437

Sample Input #2

221 231

Sample Output #2

132

Sample Input #3

839 237

Sample Output #3

938

Notes/Hints

Definition of "Reversing" in This Problem

Let the original number have $f$ digits, with the highest digit being $a_1$, the second digit being $a_2$, and so on, with the $f$-th digit being $a_f$.

The reversed number will also have $f$ digits, with the highest digit being $a_f$, the second digit being $a_{f-1}$, and so on, with the $f$-th digit being $a_1$.

Data Size and Constraints

For $100\%$ of the data, $100 \le a, b \le 999$, and $a, b$ do not contain $0$ or are not $0$.

Note

Translated from COCI 2009-2010 #3 T1 FILIP, full score is 30, each test case is worth 3 points, with a total of 10 test cases.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
734 893
样例输出
437