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

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

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

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

Solution (Python):
def main():

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

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

main()

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

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())
ret = ''
if( a > b):
    ret = 'GREATER'
elif( a < b):
    ret = 'LESS'
else:
    ret = 'EQUAL'

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

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

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

    ans = str()

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

    print(ans)
resolve()

Solution (Python):
from sys import exit
A = input()
B = input()
if len(A) > len(B):
  print("GREATER")
elif len(A) < len(B):
  print("LESS")
else:
  for a,b in zip(A,B):
    if a > b:
      print("GREATER")
      exit()
    elif a < b:
      print("LESS")
      exit()
  print("EQUAL")

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

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):
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')
elif a < b:
    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())
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 = input()
b = input()

al = len(a)
bl = len(b)

if al>bl:
    print('GREATER')
elif al<bl:
    print('LESS')
else:
    i = 0
    check = 0
    for i in range(al):
        if a[i] == b[i]:
            pass
        else:
            check += int(a[i]) - int(b[i])
            break

    if check > 0:
        print('GREATER')
    elif check < 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):
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('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 = 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())
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 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())
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 'EQUAL' if a==b else 'LESS')

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 b>a:
	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 a, b in zip(A, B):
        if a > b:
            print("GREATER")
            break
        elif a < b:
            print("LESS")
            break
    else:
        print("EQUAL")

Solution (Python):
x = int(input())
x -= int(input())

if x > 0:
    print("GREATER")
elif x < 0:
    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 = input()
B = input()

if len(A) != len(B):
    if len(A) > len(B):
        print('GREATER')
    else:
        print('LESS')
else:
    for a, b in zip(A, B):
        if int(a) > int(b):
            print('GREATER')
            exit()
        elif int(a) < int(b):
            print('LESS')
            exit()
    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():
    mod = 1000000007                
    inf = float('inf')              
    
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    a = ii()
    b = ii()
    if a > b:
        print('GREATER') 
    elif a == b:
        print('EQUAL')
    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 = input()
b = input()
if a == b:
	print("EQUAL")
elif len(a) < len(b):
	print("LESS")
elif len(a) > len(b):
	print("GREATER")
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 = 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('EQUAL')
else:
  print('LESS')

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

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

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

Solution (Python):
import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy

A = input()
B = input()

if len(A) != len(B):
    print("GREATER" if len(A) > len(B) else "LESS")
else:
    def lt(A, B):
        l = len(A)
        for i in range(l):
            if A[i] > B[i]:
                return "GREATER"
            elif A[i] < B[i]:
                return "LESS"
        return "EQUAL"

    print(lt(A, B))

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

Solution (Python):
a = int(input())
b = int(input())
print('GREATER' if a>b else 'EQUAL' if a==b else '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("EQUAL")
elif A < B:
    print("LESS")
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 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("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):
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("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):
from sys import stdin, stdout 

a = int(stdin.readline()) 
b = int(stdin.readline())

if a > b:
    stdout.write(str('GREATER'))
elif a < b:
    stdout.write(str('LESS'))
else:
    stdout.write(str('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())

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

Solution (Python):
import sys
import math
import bisect

def main():
    a = int(input())
    b = int(input())
    if a < b:
        print('LESS')
    elif a > b:
        print('GREATER')
    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")
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):
import math
import copy

neko = 0
nuko = 0
inu = 0

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

Solution (Python):

"""
Created on Thu May 14 16:34:41 2020

@author: shinba
"""

a = input()
b = 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")
            break
        elif int(b[i]) > int(a[i]):
            print("LESS")
            break
    else:
        print("EQUAL")

Solution (Python):
import sys

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")
            sys.exit()
        elif A[i] < B[i]:
            print("LESS")
            sys.exit()
        else:
            continue
    else:
        print("EQUAL")

Solution (Python):
import sys

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")
            sys.exit()
        elif int(A[i])<int(B[i]):
            print("LESS")
            sys.exit()
        else:
            continue
    else:
        print("EQUAL")

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


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


import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))

from collections import Counter
def resolve():
    A=int(input())
    B=int(input())
    if A==B:print("EQUAL")
    else:print(["LESS","GREATER"][A>B])


resolve()

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())
print("GREATER" if A>B else "EQUAL" if A==B else "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())
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):
import math
a = math.log(int(input()))
b = math.log(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:
    i = 0
    while True:
        if A[i] > B[i]:
            print("GREATER")
            break
        elif A[i] < B[i]:
            print("LESS")
            break
        else:
            if i == len(A)-1:
                print("EQUAL")
                break
            else:
                i += 1

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):
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("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("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):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, log2
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
A = INT()
B = INT()

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')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

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

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

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

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

Solution (Python):
a, b = map(int, open(0).read().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 b>a: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):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
def printns(x): print('\n'.join(x))
def printni(x): print('\n'.join(list(map(str,x))))
inf = 10**17
mod = 10**9 + 7


a=I()
b=I()
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:
  ans = 'GREATER'
elif A == B:
  ans = 'EQUAL'
elif A < B:
  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 = input()
b = input()
la = len(a)
lb = len(b)
if la > lb:
  print('GREATER')
elif la==lb:
  if a > b:
    print('GREATER')
  elif a==b:
    print('EQUAL')
  else:
    print('LESS')  
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('LESS')
elif a>b:
    print('GREATER')
else:
    print('EQUAL')

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

Solution (Python):
a = input()
b = input()
if len(a)<len(b):
    print('LESS')
elif len(a)>len(b):
    print('GREATER')
else:
    for aa, bb in zip(a, b):
        if aa<bb:
            print('LESS')
            break
        elif aa>bb:
            print('GREATER')
            break
    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())

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

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

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

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

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

Solution (Python):
import sys

def IS(): return sys.stdin.readline().rstrip()
def II(): return int(IS())
def MII(): return list(map(int, IS().split()))
def MIIZ(): return list(map(lambda x: x-1, MII()))

def DD2(d1,d2,init=0): return [[init]*d2 for _ in range(d1)]
def DD3(d1,d2,d3,init=0): return [DD2(d2,d3,init) for _ in range(d1)]

def to_bin(x: int) -> str: return format(x, 'b') 
def to_oct(x: int) -> str: return format(x, 'o') 
def to_hex(x: int) -> str: return format(x, 'x') 
MOD=10**9+7
def divc(x,y) -> int: return -(-x//y)
def divf(x,y) -> int: return x//y
def gcd(x,y):
    while y: x,y = y,x%y
    return x
def lcm(x,y): return x*y//gcd(x,y)
def enumerate_divs(n):
    """Return a tuple list of divisor of n"""
    return [(i,n//i) for i in range(1,int(n**0.5)+1) if n%i==0]
def get_primes(MAX_NUM=10**3):
    """Return a list of prime numbers n or less"""
    is_prime = [True]*(MAX_NUM+1)
    is_prime[0] = is_prime[1] = False
    for i in range(2, int(MAX_NUM**0.5)+1):
        if not is_prime[i]: continue
        for j in range(i*2, MAX_NUM+1, i):
            is_prime[j] = False
    return [i for i in range(MAX_NUM+1) if is_prime[i]]

from itertools import accumulate as acc
from collections import deque, Counter
from heapq import heapify, heappop, heappush
from bisect import bisect_left


def main():
    a = II()
    b = II()
    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:
    ans="GREATER"
elif A==B:
    ans="EQUAL"
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())

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

Solution (Python):
import numpy as np
import sys

input = sys.stdin.readline

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