la=list(map(str,input().split())) lb=list(map(str,input().split())) if int(la[1])>int(lb[1]): print(la[0]) elif int(la[1])