There are two rectangles.
The lengths of the vertical sides of the first rectangle are A, and the lengths of the horizontal sides of the first rectangle are B.
The lengths of the vertical sides of the second rectangle are C, and the lengths of the horizontal sides of the second rectangle are D.
Print the area of the rectangle with the larger area.
If the two rectangles have equal areas, print that area.

-----Constraints-----
 - All input values are integers.
 - 1≤A≤10^4
 - 1≤B≤10^4
 - 1≤C≤10^4
 - 1≤D≤10^4

-----Input-----
The input is given from Standard Input in the following format:
A B C D

-----Output-----
Print the area of the rectangle with the larger area.
If the two rectangles have equal areas, print that area.

-----Sample Input-----
3 5 2 7

-----Sample Output-----
15

The first rectangle has an area of 3×5=15, and the second rectangle has an area of 2×7=14.
Thus, the output should be 15, the larger area.

Difficulty: introductory

Starter code:

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

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

S1 = A * B
S2 = C * D

print(max(S1, S2))

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

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

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

# 052

# 1.値を正しく取得
a,b,c,d=(int(x) for x in input().split())

# 2.正しく処理

menseki1 = a * b
menseki2 = c * d

if menseki1 > menseki2:
    print(menseki1)

elif menseki1 < menseki2:
    print(menseki2)

else :
    print(menseki1)


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

product = max(A * B,C * D)
print(product)

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

x = a*b
y = c*d

if x>y:
	print(x)
elif y>=x:
	print(y)

A, B, C, D = map(int,input().split())
x = A * B
y = C * D

if x > y :
    print(x)
else:
    print(y)

# A - Two Rectangles

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


if A * B >= C * D:
    answer = A * B
else:
    answer = C * D

print(answer)

a,b,c,d = map(int,input().split())
area1 = a * b
area2 = c * d 

if area1 > area2:
    print(area1)
else:
    print(area2)


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

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



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

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

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

A, B, C, D = 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()))

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()))

rectangles_1 = a * b
rectangles_2 = c * d

if rectangles_1 > rectangles_2:
    print(rectangles_1)
else:
    print(rectangles_2)


A, B, C, D = map(int, input().split())
s1 = A * B
s2 = C * D

if s1 == s2:
    print(s1)
elif s1 > s2:
    print(s1)
else:
    print(s2)

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


# 数値の取得
A,B,C,D = map(int,input().split())

# 面積の最大値を出力
AB = A * B
CD = C * D
print(max(AB,CD))

'''
ABC052_a A - Two Rectangles
https://atcoder.jp/contests/abc052/tasks/abc052_a
'''

class Solver:
    """ solve ABC052_a class """
    ans = 0

    def __init__(self, a, b, c, d):
        self.solve(a, b, c, d)

    def compare(self, s1, s2):
        return s1 if s1 > s2 else s2

    def calc_area(self, h, w):
        return h*w

    def solve(self, h1, w1, h2, w2):
        s1 = self.calc_area(h1, w1)
        s2 = self.calc_area(h2, w2)
        self.ans = self.compare(s1, s2)

def input_data():
    return list(map(int, input().split()))

def main():
    a, b, c, d = input_data()
    answer = Solver(a, b, c, d).ans
    print(answer)

def __starting_point():
    main()

__starting_point()

#!/usr/bin/env python3

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


def __starting_point():
    main()

__starting_point()

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

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


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



print(A*B if A*B == C*D else max(A*B, C*D))

import sys, math
from itertools import combinations as c, product as p
from collections import deque
sys.setrecursionlimit(10**9)


def si(): return input()
def ii(): return int(input())
def fi(): return float(input())
def lstr(): return input().split()
def lint(): return list(map(int, input().split()))
def lint_dec(): return list([int(x) - 1 for x in input().split()])
def lnstr(n): return [input() for _ in range(n)]
def lnint(n): return [int(input()) for _ in range(n)]
def lint_list(n): return [lint() for _ in range(n)]



############################################################
A, B, C, D = lint()
print((max(A*B, C*D)))


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

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

area = [A * B, C * D]

print(max(area))

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

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= [*map(int, input().split())]
print(max(a*b,c*d))

vertical1, horizontal1, vertical2, horizontal2 = map(int, input().split())
area1 = vertical1 * horizontal1
area2 = vertical2 * horizontal2
if area1 < area2:
    print(area2)
else:
    print(area1)

A,B,C,D = map(int,input().split(" "))
print(max(A*B,C*D))

# 052a

def atc_052a(input_value: str) -> int:
    A, B, C, D = map(int, input_value.split(" "))
    return max(A * B, C * D)

input_value = input()
print(atc_052a(input_value))

a,b,c,d = 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 = map(int, input().split())



area_ab = A * B
area_cd = C * D

if area_ab > area_cd:
    print(area_ab)
else:
    print(area_cd)

# 面積の最大値を出力する

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

area = [A * B, C * D]

print((max(area)))


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

obj1 = a*b
obj2 = c*d

if obj1 < obj2:
    ans = obj2
elif obj2 < obj1:
    ans = obj1
else:
    ans = obj1

print(ans)

# 052a

def atc_052a(input_value: str) -> int:
    A, B, C, D = list(map(int, input_value.split(" ")))
    return max(A * B, C * D)

input_value = input()
print((atc_052a(input_value)))


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

area1 = A * B
area2 = C * D

if area1 > area2 or area1 == area2:
    print(area1)
else:
    print(area2)

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

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

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

if A * B >= C * D:
    print(A * B)
else:
    print(C * D)

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

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

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

import sys
input = sys.stdin.readline


l = list(map(int,input().split()))

recA = l[:2]
recB = l[2:]

areaA = int(recA[0]) * int(recA[-1])
areaB = int(recB[0]) * int(recB[-1])

if(areaA > areaB):
    print(areaA)
elif (areaB > areaA):
    print(areaB)
elif(areaB == areaA):
    print(areaB)



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

# 二つの長方形があります。
# 一つ目の長方形は、縦の辺の長さが A、横の辺の長さが Bです。
# 二つ目の長方形は、縦の辺の長さが C、横の辺の長さが Dです。
# この二つの長方形のうち、面積の大きい方の面積を出力してください。
# なお、二つの長方形の面積が等しい時は、その面積を出力してください。

area_ab = A * B
area_cd = C * D

if area_ab > area_cd:
    print(area_ab)
else:
    print(area_cd)

n = [int(x) for x in input().split()]
print(max(n[0]*n[1],n[2]*n[3]))

# 052_a
A, B, C, D = list(map(int, input().split()))
S1=A*B
S2=C*D

if (1<=A&A<=10**4)&(1<=B&B<=10**4)&(1<=C&C<=10**4)&(1<=D&D<=10**4):
    if S1>S2:
        print(S1)
    elif S1<=S2:
        print(S2)


'''
問題：
    二つの長方形があります。
    一つ目の長方形は、縦の辺の長さが A、横の辺の長さが B です。
    二つ目の長方形は、縦の辺の長さが C、横の辺の長さが D です。

    この二つの長方形のうち、面積の大きい方の面積を出力してください。 なお、二つの長方形の面積が等しい時は、その面積を出力してください。
'''

'''
制約：
    入力は全て整数である
    1 ≦ A ≦ 10000
    1 ≦ B ≦ 10000
    1 ≦ C ≦ 10000
    1 ≦ D ≦ 10000
'''

# 標準入力から A, B, C, D の値を取得する
a, b, c, d = list(map(int, input().split()))

result = [a * b, c * d] # 結果格納用リスト
print((max(result)))


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

vertical1, horizontal1, vertical2, horizontal2 = map(int, input().split())
if vertical1 * horizontal1 < vertical2 * horizontal2:
    print(vertical2 * horizontal2)
else:
    print(vertical1 * horizontal1)

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

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

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

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

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

rec1 = a * b
rec2 = c * d

if rec1 >= rec2:
    print(rec1)
else:
    print(rec2)


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

def answer(A: int, B: int, C: int, D: int) -> int:
    return max(A * B, C * D)

print((answer(A, B, C, D)))


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

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

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

S_list = iter(list(map(int,input().split())))
area = list()
for x,y in zip(S_list ,S_list):
    area.append(x*y)
print(max(area))

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

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

if A * B >= C * D:
    print(A * B)
if A * B < C * D:
    print(C * D)

# A - Two Rectangles
# https://atcoder.jp/contests/abc052/tasks/abc052_a

square = list(map(int, input().split()))

result = [square[0] * square[1], square[2] * square[3]]
print((max(result)))


a,b,c,d=map(int,input().split())
e=[]
f=a*b
g=c*d
e.append(f)
e.append(g)
if(f==g):
    print(f)
else:
    print(max(e))

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

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

rec1 = a * b
rec2 = c * d

if rec1 == rec2:
    print(rec1)
else:
    print(max(rec1, rec2))

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

ab = A * B
cd = C * D

if ab > cd:
    print(ab)
elif cd > ab:
    print(cd)
else:
    print(ab)

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

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


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

rectangle1_scale1, rectangle1_scale2, rectangle2_scale1, rectangle2_scale2 = list(map(int, input().split()))

big_rectangle_area = max(rectangle1_scale1 * rectangle1_scale2, rectangle2_scale1 * rectangle2_scale2)

print(big_rectangle_area)


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

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

a, b, c, d = (int(n) for n in input().split())
print(max(a * b, c * d))

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

#52
A,B,C,D=map(int,input().split())
if (A*B)>(C*D):
    print(A*B)
else:
    print(C*D)

# 1つ目　縦A、横B
# 2つ目　縦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 = map(int,input().split())
# 2つの面積をリスト化
area = [a*b,c*d]
# 面積のうち最大値を出力
print(max(area))

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

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

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

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

if a * b >= c * d:
    print(a * b)
else:
    print(c * d)

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

val = list(map(int,input().split()))
print(max(val[0] * val[1], val[2] * val[3]))

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

areaAB = A * B
areaCD = C * D

if areaAB == areaCD:
    result = areaAB
elif areaAB > areaCD:
    result = areaAB
else:
    result = areaCD

print(result)

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

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

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

x=a*b
y=c*d

if x>=y:
    print(x)
if y>x:
    print(y)

# 二つの長方形があります。 一つ目の長方形は、縦の辺の長さが A 、横の辺の長さが B です。
# 二つ目の長方形は、縦の辺の長さが C 、横の辺の長さが D です。 この二つの長方形のうち、面積の大きい方の面積を出力してください。
# なお、二つの長方形の面積が等しい時は、その面積を出力してください。

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

x = A * B
y = C * D
if x > y:
    print(x)
elif x < y:
    print(y)
elif x == y:
    print(x)

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

area1 = A * B
area2 = C * D

if area1 > area2:
    print(area1)
elif area1 < area2:
    print(area2)
else:
    print(area1)

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

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

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

X = A * B
Y = C * D


if X > Y:
    print(X)
else:
    print(Y)