#include <stdio.h> 
#include<iostream>
int main()
{
	int a,b,c,d;
	int area1,area2;
	printf("Enter a value for A,B,C and D\n");
	scanf("%d%d%d%d",&a,&b,&c,&d);
	while(0<=a<=10000 && 0<=b<=10000 && 0<=c<=10000 && 0<=d<=10000){
		area1=a*b;
		area2=c*d;
		if(area1==area2)
		{
			printf("%d ",area1);
			break;
		}
			else if(area1>area2)
		{
			printf("The first rectangle has an area = %d" "and the second rectangle has an area = %d" "Thus, the output should be la%d",area1,area2,area1);
			break;
			}
				else
		{
			printf("The first rectangle has an area = %d" "and the second rectangle has an area = %d" "Thus, the output should be la%d",area1,area2,area2);
			break;
			}
		}
	return 0;
}