import io import sys from collections import defaultdict, deque, Counter from itertools import permutations, combinations, accumulate from heapq import heappush, heappop from bisect import bisect_right, bisect_left from math import gcd import math _INPUT = """\ 6 3 6 6 12 4 12 36 6 1 1 141 173 2334 9149 9138 469 """ def input(): return sys.stdin.readline()[:-1] def solve(test): A,B=map(int,input().split()) H,W=map(int,input().split()) if min(B*H**2,A*W**2)