import sys def MI(): return map(int, sys.stdin.readline().split()) def main(): x,y=MI() x2,y2=MI() ans=max(x,y) if x==y and x2==y2 and x2