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 = input()
B = input()

def compare(A,B):
    if A == B:
        return 'EQUAL'
    if len(A) > len(B):
        return 'GREATER'
    if len(B) > len(A):
        return 'LESS'
    for i in range(len(A)):
        a = int(A[i])
        b = int(B[i])
        if a > b:
            return 'GREATER'
        if b > a:
            return 'LESS'

print(compare(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):
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, b = list(map(int, [input().rstrip() for _ 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):
import sys
from collections import Counter

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

if a < b:
    print('LESS')
elif a > b:
    print('GREATER')
elif a == b:
    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())
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")
elif A == B:
    print("EQUAL")

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

    return a, b

def submit():
    a, b = read_input()

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

if __name__ == '__main__':
    submit()

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):
a = int(input())
b = int(input())
if a>b:print('GREATER')
if a<b:print('LESS')
if a==b:print('EQUAL')

Solution (Python):
A, B = eval("int(input())," * 2)
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')
elif len(A) < len(B):
  print('LESS')
else:
  if A == B:
    print('EQUAL')
  else:
    for i in range(len(A)):
      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('GREATER')
elif a < b:
    print('LESS')
else:
    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):
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())
if A > B:
    print("GREATER")
elif A < B:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):



def main():
    A = int(input())
    B = int(input())
    if A == B:
        print('EQUAL')
    elif A > B:
        print('GREATER')
    elif A < B:
        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:
    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(input())
b=int(input())
print("GREATER" if a>b else "LESS" if b>a else "EQUAL")

Solution (Python):
a=input()
b=input()
A=len(a)
B=len(b)

if A<B:
    print("LESS")
elif B<A:
    print("GREATER")
else:
    for i in range(A):
        if int(a[i])<int(b[i]):
            print("LESS")
            break
        elif int(b[i])<int(a[i]):
            print("GREATER")
            break
        elif int(a[i])==int(b[i]) and i==A-1:
            print("EQUAL")

Solution (Python):
a=input()
b=input()
if len(a)>len(b):
    print("GREATER")
elif len(a)<len(b):
    print("LESS")
else:
    for i,j in zip(a,b):
        if int(i)>int(j):
            print("GREATER")
            break
        elif int(i)<int(j):
            print("LESS")
            break
    else:
        print("EQUAL")

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

Solution (Python):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a = f()[0]
    b = f()[0]
    if a>b:
        print('GREATER')
    elif a<b:
        print('LESS')
    else:
        print('EQUAL')

solve()

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

Solution (Python):

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

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

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_s = input()
b_s = input()

if len(a_s) > len(b_s):
    print("GREATER")
    exit()
elif len(a_s) < len(b_s):
    print("LESS")
    exit()

for a, b in zip(a_s, b_s):
    if a > b:
        print("GREATER")
        exit()
    elif b > a:
        print("LESS")
        exit()

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=input()
nl=len(n)
m=input()
ml=len(m)
if nl>ml:
  print('GREATER')
elif nl<ml:
  print('LESS')
else:
  for i in range(nl):
    if int(n[i])>int(m[i]):
      print('GREATER')
      break
    elif int(n[i])<int(m[i]):
      print('LESS')
      break
    if i==nl-1:
      print('EQUAL')

Solution (Python):
a_s = input()
b_s = input()
if a_s == b_s:
    print('EQUAL')
elif len(a_s) > len(b_s):
    print('GREATER')
elif len(a_s) < len(b_s):
    print('LESS')
else:
    a = list(map(int, list(a_s)))
    b = list(map(int, list(b_s)))
    for ai, bi in zip(a, b):
        if ai > bi:
            print('GREATER')
            break
        elif ai < bi:
            print('LESS')
            break

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

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    a = int(input().rstrip())
    b = int(input().rstrip())
    if a > b:
        print('GREATER')
    elif b > a:
        print('LESS')
    else:
        print('EQUAL')
    
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=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 a[i]>b[i]:
            print("GREATER")
            exit()
        elif a[i]<b[i]:
            print("LESS")
            exit()
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):
import sys

def main():
    input = sys.stdin.readline
    A = int(input())
    B = int(input())

    if A == B:
        return 'EQUAL'
    elif A > B:
        return 'GREATER'
    else:
        return 'LESS'


if __name__ == '__main__':
    print(main())

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):
import sys
ns = lambda: sys.stdin.readline().rstrip()
ni = lambda: int(ns())
nm = lambda: map(int, sys.stdin.readline().split())
nl = lambda: list(nm())

a = list(ns())
b = list(ns())

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

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

Solution (Python):
ab = [int(input()) for i in range(2)]
if (ab[0] > ab[1]):
    print("GREATER")
elif (ab[0] < ab[1]):
    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("GREATER")
elif b > a:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
a,b=map(int,open(0));print(['ELQEUSASL'[a<b::2],'GREATER'][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):
A, B = int(input()), int(input())

if A==B:
  ans = 'EQUAL'
elif A<B:
  ans = 'LESS'
else:
  ans = 'GREATER'

print(ans)

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

Solution (Python):
import math

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



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

Solution (Python):
import math

A = int(input())
B = int(input())
A = math.log10(A)
B = math.log10(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('EQUAL')
elif a>b:
  print('GREATER')
elif a<b:
  print('LESS')

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

print("GREATER" if a > b else "LESS" if b > a else "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(input()), int(input())
print("GREATER" if A > B else "LESS" if A < B else "EQUAL")

Solution (Python):
a = input()
b = input() 
if len(a) < len(b):
  print("LESS")
  exit()
elif len(a) > len(b):
  print("GREATER")
  exit()
else:
  for i in range(len(a)):
    if a[i] > b[i]:
      print("GREATER")
      exit()
    elif a[i] < b[i]:
      print("LESS")
      exit()
print("EQUAL")

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

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 = 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())
if a > b:
    print("GREATER")
else:
    print("ELQEUSASL"[a<b::2])

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("EQUAL")
else:
  print("LESS")

Solution (Python):
def comparison(A: int, B: int) -> str:
    if A < B:
        return 'LESS'
    if B < A:
        return 'GREATER'
    return 'EQUAL'


if __name__ == "__main__":
    A, B = int(input()), int(input())
    ans = comparison(A, B)
    print(ans)

Solution (Python):

from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


"""
s = LS()
print(s[0][0].upper()+s[1][0].upper()+s[2][0].upper())
"""

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

"""
n = I()
a = LI()
b = [a[i] for i in range(n)]
ans = 0
k = a[0]
if a[0] == 0:
    a[0] = 1
    ans = 1
    k = 1
for i in range(1,n):
    if k*(k+a[i]) >= 0:
        if k < 0:
            ans += abs(1-k-a[i])
            a[i] = 1-k
            k = 1
        else:
            ans += abs(-1-k-a[i])
            a[i] = -1-k
            k = -1
    else:
        k += a[i]
if b[0] >= 0:
    ans2 = b[0]+1
    k = -1
    b[0] = -1
else:
    ans2 = 1-b[0]
    k = 1
    b[0] = 1
for i in range(1,n):
    if k*(k+b[i]) >= 0:
        if k < 0:
            ans2 += abs(1-k-b[i])
            b[i] = 1-k
            k = 1
        else:
            ans2 += abs(-1-k-b[i])
            b[i] = -1-k
            k = -1
    else:
        k += b[i]
print(min(ans,ans2))
"""

"""
x,y = LI()
if abs(x-y) <= 1:
    print("Brown")
else:
    print("Alice")
"""

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 int(A) - int(B) == 0:
  	print('EQUAL')
else:
    if len(A) > len(B):
        print('GREATER')
    elif len(A) < len(B):
        print('LESS')
    else:
        i = 0
        while i < len(A):
            if A[i] > B[i]:
                print('GREATER')
                break
            elif A[i] < B[i]:
                print('LESS')
                break
            else:
                i += 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())

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

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

Solution (Python):
a, b = int(input()), 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")
elif a==b:
  print("EQUAL")

Solution (Python):
A,B=[int(input()) for i in range(2)]
print(["EQUAL","LESS","GREATER"][(A!=B)+(A>B)])

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):
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())
print('GREATER' if A > B else 'LESS' if A < B else '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('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())
print('GREATER' if A > B else 'LESS' if A < B else '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,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:
    ans = 'GREATER'
elif A == B:
    ans = 'EQUAL'
else:
    ans = 'LESS'

print(ans)

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("LESS")
else:
    print("EQUAL")

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

if len(A)>len(B):
  print("GREATER")
elif len(A)<len(B):
  print("LESS")
else:
  for i in range(len(A)):
    if int(A[i])>int(B[i]):
      print("GREATER")
      break
    elif int(A[i])<int(B[i]):
      print("LESS")
      break
  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())
print('GREATER' if A > B else 'LESS' if A < B else 'EQUAL')

Solution (Python):
a=input()
b=input()
if len(a)>len(b):
  print("GREATER")
elif len(a)<len(b):
  print("LESS")
else:
  i=0
  f=0
  while len(a)>i:
    if int(a[i])>int(b[i]):
      f=1
      break
    elif int(a[i])<int(b[i]):
      f=2
      break
    i+=1
  if f==0:
    print("EQUAL")
  elif f==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('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')
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(input())
B = int(input())
if A>B:print('GREATER')
elif A<B:print('LESS')
else:print('EQUAL')

Solution (Python):
A,B=[int(input()) for i in range(2)]
print('GREATER') if A>B else print('LESS') if A<B 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=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())
ans = "EQUAL"
if(a > b):
  ans = "GREATER"
elif(a < b):
  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())

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):
num = [int(input()) for _ in range(2)]
if num[0]>num[1]:
    print('GREATER')
elif num[1]>num[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):

import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

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('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("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,b=[int(input()) for i in range(2)]
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("LESS")
else:
  print("EQUAL")

Solution (Python):



"""
Comparison
"""

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):
import sys
A = int(input())
B = int(input())




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

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

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

Solution (Python):
""" AtCoder """

A = input()
B = input()

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

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

if(len(A) > len(B)):
  print('GREATER')
elif(len(A) < len(B)):
  print('LESS')
elif(len(A) == len(B)):
  for i in range(len(A)):
    if(A[i] > B[i]):
      print('GREATER')
      judge = 1
      break
    elif(A[i] < B[i]):
      print('LESS')
      judge = -1
      break
  if(judge == 0):
    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):
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools
import copy

def j(q):
    if q==1: print("YES")
    else:print("NO")
    exit(0)


def ct(x,y):
    if (x>y):print("GREATER")
    elif (x<y): print("LESS")
    else: print("EQUAL")

def ip():
    return int(input())


n = ip()                              











m = ip()
ct(n,m)

Solution (Python):
A = input()
B = input()
if len(A)>len(B):
    print('GREATER')
elif len(A)<len(B):
    print('LESS')
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 = input()
B = input()
flg = 2
if len(A) > len(B):
    flg = 0
elif len(A) < len(B):
    flg = 1
else:
    for i in range(len(A)):
        if int(A[i]) > int(B[i]):
            flg = 0
            break
        elif int(A[i]) < int(B[i]):
            flg = 1
            break
print(['GREATER', 'LESS', 'EQUAL'][flg])

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

Solution (Python):
A,B = [int(input()) for _ in range(2)]
if A == B:
    print('EQUAL')
elif A > B:
    print('GREATER')
else:
    print('LESS')

Solution (Python):
a, b = [int(input()) for _ in range(2)]
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('LESS')
elif a==b:
    print('EQUAL')
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())

print("GREATER" if B < A 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("LESS")
elif a>b:
  print("GREATER")
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("LESS" if a<b else "GREATER" if a>b else "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=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 len(a)>len(b):
    print('GREATER')
elif len(a)<len(b):
    print('LESS')
else:
    for i in range(len(a)):
        if a[i]>b[i]:
            print('GREATER')
            exit()
        elif a[i]<b[i]:
            print('LESS')
            exit()
    print('EQUAL')

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

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

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

if a > b:
    ans = 'GREATER'
elif a < b:
    ans = 'LESS'
else:
    ans = 'EQUAL'

print(ans)

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

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

num = len(B) if len(A) < len(B) else len(A)

A = A.rjust(num, '0')
B = B.rjust(num, '0')

print("GREATER" if B < A 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")
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(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())
print("GREATER" if a>b else "LESS" if a<b else "EQUAL")

Solution (Python):
a=int(input())
b=int(input())
if a<b:
  print("LESS")
elif a==b:
  print("EQUAL")
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("LESS")
elif a > b:
    print("GREATER")
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):
x = int(input())
y = int(input())
if x > y:
  print('GREATER')
elif x < y:
  print('LESS')
else:
  print('EQUAL')

Solution (Python):
x = int(input())
y = int(input())
if x > y:
  print('GREATER')
elif x < y:
  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):
from math import log10
A = log10(int(input()))
B = 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=int(input())-int(input());print('GELRQEEUSAASTL E  R'[(a<1)+(a<0)::3])

Solution (Python):
a=int(input())-int(input());print('GELRQEEUSAASTL E  R'[(a<=0)+(a<0)::3])

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())-int(input());print([a and'GREATER'or'EQUAL','LESS'][a<0])

Solution (Python):

A = list(input())
B = list(input())

if len(A) > len(B):
    print("GREATER")
elif len(B) > len(A):
    print("LESS")
else:
    for i in range(len(A)):
        if int(A[i]) > int(B[i]):
            print("GREATER")
            quit()
        elif int(A[i]) < int(B[i]):
            print("LESS")
            quit()
        else:
            if i  == len(A) - 1 and int(A[i])==int(B[i]):
                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 func():
    pass


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 func():
    pass


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 = [int(input()) for _ in range(2)]
if a[0] == a[1]:
    print("EQUAL")
else:
    print("GREATER" if a[0] > a[1] else "LESS")

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

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()

flag=0

if len(b) < len(a) and flag==0:
  print('GREATER')
  flag=1
if len(b) > len(a) and flag==0:
  print('LESS')
  flag=1

  
if len(a)==len(b):  
  for i in range(len(a)):
    if b[i] < a[i] and flag==0:
      print('GREATER')
      flag=1
    elif b[i] > a[i] and flag==0:
      print('LESS')
      flag=1
    
if flag==0:
  print('EQUAL')