A,B=map(int, input().split()) if A==4 and B==7 or (not (A==4 and B==7) and A>B): print(A) else: print(B)