Problem:
 Score : 200 points    Problem Statement You are given two positive integers A and B . Compare the magnitudes of these numbers.      Constraints  1 ≤ A, B ≤ 10^{100}  Neither A nor B begins with a 0 .         Input Input is given from Standard Input in the following format:  A  B       Output Print GREATER if A>B , LESS if A<B and EQUAL if A=B .        Sample Input 1 36
24      Sample Output 1 GREATER  Since 36>24 , print GREATER .       Sample Input 2 850
3777      Sample Output 2 LESS       Sample Input 3 9720246
22516266      Sample Output 3 LESS       Sample Input 4 123456789012345678901234567890
234567890123456789012345678901      Sample Output 4 LESS

Solution (Python):
A = int(input())
B = int(input())
if A > B:
	print("GREATER")
elif A == B:
	print("EQUAL")
else:
	print("LESS")

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())
if A > B:
  print('GREATER')
elif A < B:
  print('LESS')
else:
  print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a, b = list(map(int, (input(), input())))

if a > b:
  print("GREATER")
elif a < b:
  print("LESS")
else:
  print("EQUAL")

Solution (Python):


a = int(input())
b = int(input())
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
"""
https://abc059.contest.atcoder.jp/tasks/abc059_b
"""
a=int(input())
b=int(input())

if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
print('GREATER' if a>b else 'LESS' if a<b else 'EQUAL')

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b :
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
elif A == B:
    print('EQUAL')

Solution (Python):


A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A == B:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
d=int(input())-int(input())
print(['EQUAL','GREATER','LESS'][(d>0)-(d<0)])

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):

A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A == B:
    print('EQUAL')
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
	print('GREATER')
elif a < b:
	print('LESS')
else:
	print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
s = [input() for _ in range(2)]
i = list(map(int, s))
print('GREATER' if i[0] > i[1] else 'LESS' if i[0] < i[1] else 'EQUAL')

Solution (Python):
A=int(raw_input())
B=int(raw_input())
if A<B:
  print 'LESS'
elif A==B:
  print 'EQUAL'
else:
  print 'GREATER'

Solution (Python):
A = input()
B = input()

ans = "EQUAL"

if len(A) == len(B):
    for a,b in zip(A,B):
        if a > b:
            ans = "GREATER"
            break
        elif a < b:
            ans = "LESS"
            break
        else:
            pass
elif len(A) > len(B):
    ans = "GREATER"
else:
    ans = "LESS"
print(ans)

Solution (Python):
a=int(input())
b=int(input())
if a>b:print('GREATER')
elif a<b:print('LESS')
else:print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())
ans = ''
if A > B:
    ans = 'GREATER'
elif A < B:
    ans = 'LESS'
else:
    ans = 'EQUAL'
print(ans)

Solution (Python):
A = int(input())
B = int(input())
if A==B:
    print("EQUAL")
elif A>B:
    print("GREATER")
else:
    print("LESS")

Solution (Python):
A = int(input())
B = int(input())

if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())

if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())
if A>B:
    print('GREATER')
elif A==B:
    print('EQUAL')
else:
    print('LESS')

Solution (Python):
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
if a==b:
    print("EQUAL")
if a<b:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())

if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a, b = int(input()), int(input())
ans = ['EQUAL', 'GREATER', 'LESS']
print(ans[a>b or -(a<b)])

Solution (Python):
a = input()
b = input()
m = len(a)
n = len(b)
flag = False
if m > n:
    flag = True
    print("GREATER")
elif m < n:
    flag = True
    print("LESS")
else:
    if a == b:
        print("EQUAL")
    else:
        for i in range(m):
            if a[i] > b[i]:
                print("GREATER")
                break
            elif a[i] < b[i]:
                print("LESS")
                break

Solution (Python):
a=int(input())
b=int(input())
if a<b:
   print("LESS")
elif a>b:
   print("GREATER")
else:
   print("EQUAL")

Solution (Python):
i = int(input())
j = int(input())

if i == j:
    print('EQUAL')
elif i < j:
    print('LESS')
else:
    print('GREATER')

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a == b:
    print('EQUAL')
elif a < b:
    print('LESS')
else:
    print('GREATER')

Solution (Python):
A=input()
B=input()

if A==B:
  print("EQUAL")
elif len(A)>len(B):
  print("GREATER")
elif len(A)<len(B):
  print("LESS")
else:
  ans=True
  for i in range(len(A)):
    if int(A[i]) > int(B[i]):
      break
    elif int(A[i]) < int(B[i]):
      ans=False
      break
    else:
      continue
  if ans:
    print("GREATER")
  else:
    print("LESS")

Solution (Python):
a, b = int(input()), int(input())

if a < b:
    print("LESS")
elif a == b:
    print("EQUAL")
else:
    print("GREATER")

Solution (Python):
A = input()
B = input()

if len(A) > len(B):
    print("GREATER")
elif len(A) < len(B):
    print("LESS")
else:
    for k in range(len(A)):
        if int(A[k])>int(B[k]):
            print("GREATER")
            exit(0)
        elif int(A[k])<int(B[k]):
            print("LESS")
            exit(0)
    print("EQUAL")

Solution (Python):
a, b = int(input()), int(input())
print("GREATER" if a>b else "EQUAL" if a==b else "LESS")

Solution (Python):
import math
A = math.log10(int(input()))
B = math.log10(int(input()))

if A > B: print('GREATER')
elif A < B: print('LESS')
else: print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):

A = input()
B = input()

if len(A) > len(B):
    print('GREATER')
    exit()
elif len(A) < len(B):
    print('LESS')
    exit()
else:
    for i in range(len(A)):
        
        if int(A[i]) > int(B[i]):
            print('GREATER')
            exit()
        elif int(A[i]) < int(B[i]):
            print('LESS')
            exit()
print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())
if a>b:
    print('GREATER')
elif a == b:
    print('EQUAL')
else:
    print('LESS')

Solution (Python):
def judge(a, b):
	if a > b: return 'GREATER'
	elif a < b: return 'LESS'
	else: return 'EQUAL'

A = long(raw_input())
B = long(raw_input())
print judge(A, B)

Solution (Python):
A = int(input())
B = int(input())

if A>B: print("GREATER")
elif A<B: print("LESS")
else: print("EQUAL")

Solution (Python):
Comparison_list = [int(input())for _ in range(2)]
if Comparison_list[0] > Comparison_list[1]:
    print("GREATER")
elif Comparison_list[0] == Comparison_list[1]:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
A, B = int(input()), int(input())
if A>B:
    print('GREATER')
elif A<B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a=int(input())
b=int(input())

if a>b:
    print("GREATER") 
elif a==b:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if a == b: print('EQUAL')
elif a < b: print('LESS')
else: print('GREATER')

Solution (Python):
A = int(input())
B = int(input())
if A>B:
    print("GREATER")
elif A==B:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    result = "GREATER"
elif a < b:
    result = 'LESS'
else:
    result = 'EQUAL'
print(result)

Solution (Python):





if __name__ == '__main__':
    a = int(input())
    b = int(input())

    if a > b:
        print('GREATER')
    elif a < b:
        print('LESS')
    else:
        print('EQUAL')

Solution (Python):
a,b = int(input()),int(input())
print('GREATER' if a>b else 'LESS' if a<b else 'EQUAL')

Solution (Python):
a = int(input())
b = int(input())
if a>b: print("GREATER")
elif a<b: print("LESS")
else: print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):

A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
  print("GREATER")
elif a < b:
  print("LESS")
else:
  print("EQUAL")

Solution (Python):



import math
import re
import sys


def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result




arr_data = getinputdata()



a = int(arr_data[0][0])
b = int(arr_data[1][0])

if a==b:
    
    print("EQUAL")

elif a>b:
    
    print("GREATER")
    
else:

    print("LESS")

Solution (Python):
a = int(input()) / (10 ** 10)
b = int(input()) / (10 ** 10)
if a > b:
    print('GREATER')
elif a == b:
    print('EQUAL')
else:
    print('LESS')

Solution (Python):
A = int(input())
B = int(input())
if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
if a > b:
  print("GREATER")
elif b > a:
  print("LESS")
else:
  print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a==b:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())

print('EQUAL' if a == b else 'GREATER' if a > b else 'LESS')

Solution (Python):
import sys
A=int(input())
B=int(input())
if(A>B):
    print("GREATER")
elif(A<B):
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())
if A>B:
  print('GREATER')
elif A<B:
  print('LESS')
else:
  print('EQUAL')

Solution (Python):
A=int(input())
B=int(input())

if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = input()
b = input()
if(eval(a) > eval(b)):
    print("GREATER")
elif(eval(a) < eval(b)):
    print("LESS")
else:
    print("EQUAL")

Solution (Python):

"""
https://abc059.contest.atcoder.jp/tasks/abc059_b

"""
import sys
from sys import stdin
input = stdin.readline


def solve(A, B):
    if len(A) > len(B):
        return 'GREATER'
    elif len(A) < len(B):
        return 'LESS'
    elif A == B:
        return 'EQUAL'
    else:
        return 'GREATER' if A > B else 'LESS'


def main(args):
    A = input().strip()
    B = input().strip()
    ans = solve(A, B)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a>b:
   print("GREATER")
elif b>a:
   print("LESS")
else:
   print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = [int(input()) for _ in range(2)]
if a[0] > a[1]: print('GREATER')
elif a[0] < a[1]: print('LESS')
else: print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    print ("GREATER")
elif a < b:
    print ("LESS")
else:
    print ("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())

if a > b:
    print('GREATER')
elif a == b:
    print('EQUAL')
else:
    print('LESS')

Solution (Python):
A=input()
B=input()
if A>B:
	print "GREATER"
elif A<B:
	print "LESS"
else:
	print "EQUAL"

Solution (Python):
a=int(input());b=int(input())
if(a>b):
    print('GREATER')
elif(a<b):
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a=int(input())
b=int(input())
if b<a:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
def main():
    A = int(input())
    B = int(input())

    if A > B:
        print("GREATER")
    elif A < B:
        print("LESS")
    else:
        print("EQUAL")

if __name__ == '__main__':
    main()

Solution (Python):
a=input()
b=input()
if len(a)!=len(b):
    a,b=len(a),len(b)
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())
if A < B:
    print("LESS")
elif A == B:
    print("EQUAL")
else:
    print("GREATER")

Solution (Python):
def main():
    A = int(input())
    B = int(input())

    if A > B:
        print("GREATER")
    elif A < B:
        print("LESS")
    else:
        print("EQUAL")


if __name__ == "__main__":
    main()

Solution (Python):
def solve():
    a = int(input())
    b = int(input())
    if a > b:
        print("GREATER")
    elif a == b:
        print("EQUAL")
    else:
        print("LESS")


solve()

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print("GREATER")
elif A == B:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
  print('GREATER')
elif a < b:
  print('LESS')
elif a == b:
  print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())

if A > B:
	print("GREATER")
if A < B:
	print("LESS")
if A == B:
	print("EQUAL")

Solution (Python):
val =[]
val.append(int(input()))
val.append(int(input()))

if val[1] == val[0]:
    print("EQUAL")
elif val[0] > val[1]:
    print("GREATER")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())
if A == B:
 print("EQUAL")
elif A > B:
 print("GREATER")
else:
 print("LESS")

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print("GREATER")
elif A == B:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())
if(a > b):
    print("GREATER")
elif(a < b):
    print("LESS")
elif(a == b):
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A = int(raw_input())
B = int(raw_input())
print "GREATER" if A > B else "EQUAL" if A == B else "LESS"

Solution (Python):
a = int(input())
b = int(input())
print('GREATER' if a > b else 'LESS' if a < b else 'EQUAL')

Solution (Python):
A = input()
B = input()
l = max(len(A), len(B))

if len(A) > len(B):
    print('GREATER')
elif len(A) < len(B):
    print('LESS')
elif A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A, B = [input() for i in range(2)]
if len(A) > len(B):
    print("GREATER")
elif len(A) < len(B):
    print("LESS")
elif A == B:
    print("EQUAL")
else:
    if sorted([A,B])[0] == A :
        print("LESS")
    else:
        print("GREATER")

Solution (Python):
a, b = [int(input()) for i in range(2)]
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())
 
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
num=[]
for i in [0]*2:
    num.append(int(input()))
if num[0]>num[1]:
    print("GREATER")
elif num[0]==num[1]:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
n=[int(input()) for x in range(2)]
if n[0]>n[1]:
    print("GREATER")
elif n[0]==n[1]:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
A=int(input())
B=int(input())

if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
def main():
    a = [int(i) for i in input()]
    b = [int(i) for i in input()]

    if len(a) > len(b):
        print("GREATER")
    elif len(a) < len(b):
        print("LESS")
    else:
        flag = 1
        for m, n in zip(a, b):
            if m > n:
                print("GREATER")
                flag = 0
                break
            elif m < n:
                print("LESS")
                flag = 0
                break
        if flag:
            print("EQUAL")


if __name__ == "__main__":
    main()

Solution (Python):
A,B = int(input()),int(input())
if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
gr = "GREATER"
less = "LESS"
eq = "EQUAL"

A = int(input())
B = int(input())

if A > B:
  print(gr)
elif A < B:
  print(less)
else:
  print(eq)

Solution (Python):
A=int(input())
B=int(input())

if A>B:
    print('GREATER')
elif A==B:
    print('EQUAL')
else:
    print('LESS')

Solution (Python):
a = int(input())
b = int(input())


if (a>b):
    print("GREATER")
elif(a==b):
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(raw_input())
b = int(raw_input())

if a < b:
    print 'LESS'
elif b < a:
    print 'GREATER'
else:
    print 'EQUAL'

Solution (Python):
if __name__ == "__main__":
    A = input()
    B = input()
    if (len(A) > len(B)):
        print ("GREATER")
    if (len(A) < len(B)):
        print ("LESS")
    if (len(A) == len(B)):
        if (A == B):
            print ("EQUAL")
        for x,y in zip(A, B):
            x = int(x)
            y = int(y)
            if (x > y):
                print ("GREATER")
                break
            if (x < y):
                print ("LESS")
                break

Solution (Python):
a = int(raw_input().strip())
b = int(raw_input().strip())
if a > b:
	print "GREATER"
elif a < b:
	print "LESS"
else:
	print "EQUAL"

Solution (Python):



import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)



def main():
    A = input()
    B = input()

    A = A.zfill(len(B))
    B = B.zfill(len(A))

    if A > B:
        print("GREATER")
    elif A < B:
        print("LESS")
    else:
        print("EQUAL")

if __name__ == "__main__": main()

Solution (Python):



a = input()
b = input()

a = int(a)
b = int(b)
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))

A = ri()
B = ri()
if(A == B):
    print("EQUAL")
else:
    print("GREATER" if A>B else "LESS")

Solution (Python):
from collections import defaultdict


def main():
    A = input()
    B = input()
    if A == B:
        print("EQUAL")
    elif len(A) == len(B):
        if A > B:
            print("GREATER")
        else:
            print("LESS")
    elif len(A) > len(B):
        print("GREATER")
    else:
        print("LESS")


if __name__ == '__main__':
    main()

Solution (Python):
A=int(input())
B=int(input())
if A>B:
 print ('GREATER')
elif A<B:
 print ('LESS')
else:
 print ('EQUAL')

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):

A = int(input())
B = int(input())

if ( A-B>0 ):
    print( "GREATER" )
elif( A-B<0 ):
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):


N = int(raw_input())
M = int(raw_input())
if N > M:
    print "GREATER"
elif N == M:
    print "EQUAL"
else:
    print "LESS"

Solution (Python):
A = int(input())
B = int(input())
if A == B:
	print "EQUAL"
elif A < B:
	print "LESS"
else:
	print "GREATER"

Solution (Python):
a = int(raw_input())
b = int(raw_input())
if a > b:
  print "GREATER"
elif a < b:
  print "LESS"
else:
  print "EQUAL"

Solution (Python):


import sys
import subprocess
import json
import time
import math
import re
import sqlite3

A = int(input())
B = int(input())
if A > B:  print("GREATER")
if A < B:  print("LESS")
if A == B: print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
import sys




def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


a = read_int()
b = read_int()
if a > b:
    print('GREATER')
if a < b:
    print('LESS')
if a == b:
    print('EQUAL')

Solution (Python):
A = int(input())
B = int(input())
if A>B:
   print('GREATER')
elif A<B:
   print('LESS')
else:
   print('EQUAL')

Solution (Python):
a=int(input())
b=int(input())
print('EQUAL' if a==b else 'GREATER' if a>b else 'LESS')

Solution (Python):
import sys

A=raw_input()
B=raw_input()
G="GREATER"
L="LESS"
E="EQUAL"

if len(A) > len(B):
    print G
    sys.exit()
if len(A) < len(B):
    print L
    sys.exit()

for i in range(len(A)):
    a = int(A[i])
    b = int(B[i])
    if a > b:
        print G
        sys.exit()
    if a < b:
        print L
        sys.exit()

print E

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A == B:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
n1 = int(input())
n2 = int(input())

if n1 > n2:
    print("GREATER")
elif n1 < n2:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if(a > b):
    print("GREATER")
elif(a == b):
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
n = input()
m = input()
if n==m: print "EQUAL"
elif n>m: print "GREATER"
else: print "LESS"

Solution (Python):

A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
MOD=1000000007

def solve():
    a=int(input())
    b=int(input())
    if a<b:
        print("LESS")
    elif a>b:
        print("GREATER")
    else:
        print("EQUAL")

if __name__ == "__main__":
    solve()

Solution (Python):

a = int(input())
b = int(input())

if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = [float(i) for i in input().split()]
B = [float(i) for i in input().split()]

if(A > B):
    print("GREATER")
elif(A < B):
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
from sys import stdin
a = int(stdin.readline())
b = int(stdin.readline())
ans = 'GREATER'
if a < b:
 ans = 'LESS'
elif a==b:
 ans = 'EQUAL'
print ans

Solution (Python):
if __name__ == '__main__':

    A = input();
    B = input();

    if A > B:
        print 'GREATER'
    elif A < B:
        print 'LESS'
    elif A == B:
        print 'EQUAL'

Solution (Python):
a = input()
b = input()
ret = ""
if len(a) > len(b):
    ret = "GREATER"
elif len(a) < len(b):
    ret = "LESS"
else:
    for (i, c) in enumerate(a):
        if(c > b[i]):
            ret = "GREATER"
            break
        elif(c < b[i]):
            ret = "LESS"
            break
        else:
            pass
if ret == "":
    print("EQUAL")
else:
    print(ret)

Solution (Python):

A = int(input())
B = int(input())


if A > B:
	print("GREATER")
elif A < B:
	print("LESS")
else:
	print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())
if a>b:
    print('GREATER')
elif a<b:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())
if a > b:
 print("GREATER")
elif a == b:
 print("EQUAL")
else:
 print("LESS")

Solution (Python):
n1 = input()
a = int(n1)
n2 = input()
b = int(n2)

if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
s1 = int(raw_input())
s2 = int(raw_input())
if s1>s2:
    print "GREATER"
elif s1 == s2:
    print "EQUAL"
else:
    print "LESS"

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
a = int(input())
b = int(input())

if a > b:
  print("GREATER")
elif a < b:
  print("LESS")
else :
  print("EQUAL")

Solution (Python):
a, b  = input(), input()
if a>b:
    print 'GREATER'
elif a<b:
    print 'LESS'
else:
    print 'EQUAL'

Solution (Python):
A = int(input())
B = int(input())

if A == B:
    print("EQUAL")
elif A < B:
    print("LESS")
else:
    print("GREATER")

Solution (Python):
a = input()
b = input()
n = len(a)
if len(a) == len(b):
    i = 0
    while i<n and a[i] == b[i]:
        i += 1
    if i == n:
        print("EQUAL")
    elif a[i] > b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a) > len(b):
    print("GREATER")
else:
    print("LESS")

Solution (Python):
a = int(input())
b = int(input())

if a > b:
    print ('GREATER')
elif a < b:
    print ('LESS')
else:
    print ('EQUAL')

Solution (Python):
a = int(input())
b = int(input())


if a < b:
    print("LESS")
elif a > b:
    print("GREATER")
else:
    print("EQUAL")

Solution (Python):
a=int(input())
b=int(input())
ans = ''
if a>b :
	ans='GREATER'
elif a<b:
	ans='LESS'
else:
	ans='EQUAL'
print(ans)

Solution (Python):
A=int(input())
B=int(input())
s='EQUAL'
if A>B: s='GREATER'
if A<B: s='LESS'
print(s)

Solution (Python):
a = int(input())
b = int(input())

ans = 'EQUAL'
if a<b:
    ans = 'LESS'
elif a>b:
    ans = 'GREATER'
print(ans)

Solution (Python):
a = int(input())
b = int(input())

ans = 'EQUAL'
if a<b:
    ans = 'LESS'
elif a>b:
    ans = 'GREATER'
print(ans)

Solution (Python):
A = int(input())
B = int(input())


if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a = int(input())
b = int(input())

ans = str()
if a > b:
    ans = "GREATER"
elif a < b:
    ans = "LESS"
else:
    ans = "EQUAL"

print(ans)

Solution (Python):
A = int(input())
B = int(input())

if A>B:
    print('GREATER')
elif A<B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):


a=int(raw_input())
b=int(raw_input())
if a>b:
 print 'GREATER'
elif a<b:
 print 'LESS'
else:
 print 'EQUAL'

Solution (Python):
a=int(input())
b=int(input())
if a == b:
  print('EQUAL')
elif a < b:
  print('LESS')
else:
  print('GREATER')

Solution (Python):
A, B = int(raw_input()), int(raw_input())
if A > B:
    print "GREATER"
elif A < B:
    print "LESS"
else:
    print "EQUAL"

Solution (Python):
import sys
x, y = map(int, sys.stdin.readlines())
if x > y:
    print("GREATER")
elif x == y:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
a = input()
b = input()
if a > b:
    print "GREATER"
elif a == b:
    print "EQUAL"
else:
    print "LESS"

Solution (Python):
A = int(input())
B = int(input())
if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
elif A == B:
    print("EQUAL")

Solution (Python):
A=input()
B=input()
if A>B:
    print 'GREATER'
elif A<B:
    print 'LESS'
else:
    print 'EQUAL'

Solution (Python):
A=int(input())
B=int(input())

if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):


[A,B] = [int(raw_input()) for i in range(2)]
if A > B:
    print 'GREATER'
elif A < B:
    print 'LESS'
else:
    print 'EQUAL'

Solution (Python):


a = input()
b = input()

if a > b:
    print "GREATER"
elif a < b:
    print "LESS"
else:
    print "EQUAL"

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()

def main():
    a = I()
    b = I()
    if a > b:
        return 'GREATER'
    if a < b:
        return 'LESS'

    return 'EQUAL'

print(main())

Solution (Python):
A=int(raw_input())
B=int(raw_input())
if (A>B):
 print('GREATER')
elif(A==B):
 print('EQUAL')
else:
 print('LESS')

Solution (Python):
A = int(input())
B = int(input())

if A > B:
    print("GREATER")
elif A == B:
    print("EQUAL")
else:
    print("LESS")

Solution (Python):
A = int(input())
B = int(input())
if A>B:
	print('GREATER')
elif A==B:
	print('EQUAL')
else:
	print('LESS')

Solution (Python):
import math
import sys

x = int(input())
y = int(input())

if x == y:
    print("EQUAL")
elif x > y:
    print("GREATER")
else:
    print("LESS")