https://www.acmicpc.net/problem/2908
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
static int change(int n){
int a=n/100;
int b=(n%100)/10;
int c=n%10;
return c*100+b*10+a;
}
int main() {
int n,m;
scanf("%d %d",&n,&m);
if(change(n)>=change(m)) printf("%d",change(n));
else printf("%d",change(m));
}