#include<stdio.h>
int main()
{
	int n,a,b,i;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		scanf("%d  %d",&a,&b);
		if(a==b)
		{
			printf("These numbers are equal.\n");
		}
		 else if(a<b)
		 {
		 	printf("%d\n",b);
		 }
		 else
		 {
		 	printf("%d\n",a);
		 }
		
	 }
	return 0;
}