
main = do
  a <- readLn :: IO Integer
  b <- readLn :: IO Integer
  if a < b
    then do 
      putStrLn "LESS"
    else if a > b
      then do
        putStrLn "GREATER"
        else do
          putStrLn "EQUAL"
      