A, B, C, D = list(map(int,input().split()))



if A * B == C * D:

    print((A * B))

else:

    print((max(A * B, 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((max(A * B, 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((max(A * B, C * D))) +a, b, c, d = list(map(int, input().split())) +print((max(a * b, c * d)))