#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;
}