output_description: Print `GREATER` if A>B, `LESS` if A<B and `EQUAL` if A=B.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A
      B
attempt: import sys, re
  from math import ceil, floor, sqrt, pi, factorial, gcd
  from copy import deepcopy
  from collections import Counter, deque
  from heapq import heapify, heappop, heappush
  from itertools import accumulate, product, combinations, combinations_with_replacement
  from bisect import bisect, bisect_left, bisect_right
  from functools import reduce
  from decimal import Decimal, getcontext
  # input = sys.stdin.readline 
  def i_input(): return int(input())
  def i_map(): return map(int, input().split())
  def i_list(): return list(i_map())
  def i_row(N): return [i_input() for _ in range(N)]
  def i_row_list(N): return [i_list() for _ in range(N)]
  def s_input(): return input()
  def s_map(): return input().split()
  def s_list(): return list(s_map())
  def s_row(N): return [s_input for _ in range(N)]
  def s_row_str(N): return [s_list() for _ in range(N)]
  def s_row_list(N): return [list(s_input()) for _ in range(N)]
  def lcm(a, b): return a * b // gcd(a, b)
  sys.setrecursionlimit(10 ** 6)
  INF = float('inf')
  MOD = 10 ** 9 + 7
  num_list = []
  str_list = []
  
  def main():
      a = i_input()
      b = i_input()
  
      if a == b:
          print('EQUAL')
      else:
          a > b:
          print('GREATER')
      else:
          print('LESS')
  
  if __name__ == '__main__':
      main()
  
problem_description: Statement
  
  You are given two positive integers A and B. Compare the magnitudes of these
  numbers.
samples: [{"input": "36\n    24", "output": "GREATER\n    \n\nSince 36>24, print `GREATER`.\n\n* * *"}, {"input": "850\n    3777", "output": "LESS\n    \n\n* * *"}, {"input": "9720246\n    22516266", "output": "LESS\n    \n\n* * *"}, {"input": "123456789012345678901234567890\n    234567890123456789012345678901", "output": "LESS"}]