https://www.acmicpc.net/problem/2908
using System;
class Program
{
static int change(int n){
int a=n/100;
int b=(n%100)/10;
int c=n%10;
return c*100+b*10+a;
}
static void Main() {
string[] s=Console.ReadLine().Split(' ');
int n=int.Parse(s[0]);
int m=int.Parse(s[1]);
if(change(n)>=change(m)) Console.Write("{0}",change(n));
else Console.Write("{0}",change(m));
}
}