#include <stdlib.h>
#include <stdio.h>
#include <math.h>

#include <string.h>
#include <ctype.h>

int main()
{
    int a, b, x[3], y[3],i=0;
    scanf("%d %d",&a, &b);
    while (a!=0)
    {
          x[i]=a%10;
          a/=10;
          i++;
    } i=0;
     while (b!=0)
    {
          y[i]=b%10;
          b/=10;
          i++;
    }    
    a=x[0]*100+x[1]*10+x[2];
    b=y[0]*100+y[1]*10+y[2];
    if(a>b) printf("%d", a);
    else printf("%d", b);
   
    return 0;
}
    
