#include<stdio.h>
#include<string.h>
int main()
{
char str1[20],str2[20];
scanf("%s",str1);
scanf("%s",str2);
if(strcmp(str1,str2)==0)
printf("%s is equal to %s",str1,str2);
else if(strcmp(str1,str2)<0)
printf("%s is less than %s",str1,str2);
else
printf("%s is greater than %s",str1,str2);
return 0;
}