A,B,C=list(input().split()) a,b,c=list(input().split()) if int(B)>int(b): print(A) elif int(B)