a,b=map(int,input().split()) h,w=map(int,input().split()) t=h,a if w*a