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



ans = a*b, c*d



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



if A * B > C * D:

    print((A * B))

elif A * B < C * D:

    print((C * D))

else:

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

A, B, C, D = list(map(int, input().split()))
if A * B > C * D:
    print((A * B))
elif A * B < C * D:
    print((C * D))
else:
    print((A * B))

-a, b, c, d = list(map(int, input().split())) -ans = a * b, c * d -print((max(ans))) +A, B, C, D = list(map(int, input().split())) +if A * B > C * D: +    print((A * B)) +elif A * B < C * D: +    print((C * D)) +else: +    print((A * B))