let a, b = Scanf.scanf " %s %s" @@ fun a b -> a, b
let n, m = String.length a, String.length b
let _ = print_endline @@
  if n < m then "LESS" else if n > m then "GREATER"
  else if a < b then "LESS" else if a > b then "GREATER" else "EQUAL"