a,b,c,d=list(map(int,input().split()))

if a*b >= c*d:

  print((a*b))

else:

  print((c*d))
a,b,c,d=list(map(int,input().split()))

print((max(a*b,c*d)))

a, b, c, d = list(map(int, input().split()))
if a * b >= c * d:
    print((a * b))
else:
    print((c * d))

a, b, c, d = list(map(int, input().split()))
print((max(a * b, c * d)))

-if a * b >= c * d: -    print((a * b)) -else: -    print((c * d)) +print((max(a * b, c * d)))