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