using System;
namespace Condtn{
public class Program5{
public static void Main(String[] arg){
int a,b;
bool flag;
a=Convert.ToInt32(Console.ReadLine());
b=Convert.ToInt32(Console.ReadLine());
flag= a > b ? true : false;
if ( flag == true)
Console.WriteLine("a is greater");
else
Console.WriteLine("b is greater");
}