You are given two positive integers A and B. Compare the magnitudes of these numbers.
A = int(input())
B = int(input())
if A > B:
  print('GRATER')
elif A == B:
  print('EQUAL')
else:
  print('LESS')
A = int(input())
B = int(input())
if A - B > 0:
  print('GREATER')
elif A - B == 0:
  print('EQUAL')
else:
  print('LESS')