a,b,c=input().split() d,e,f=input().split() b,e=int(b),int(e) if b>e: print(a) elif b