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):
import sys
input = sys.stdin.readline
A = int(input())
B = int(input())
if A > B :
    print("GREATER")
elif A == B :
    print("EQUAL")
else :
    print("LESS")

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

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

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

result = "EQUAL"

if a > b :
  result = "GREATER"
elif a < b :
  result = "LESS"

print(result)

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 _ in range(2))
print("GREATER" if a>b else "EQUAL" if b==a else "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):
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('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):

import numpy as np
import math

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

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

Solution (Python):


import numpy as np
import math

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

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

Solution (Python):


import numpy as np
import math

a=input()
b=input()

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

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

b=int(input())

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

Solution (Python):
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())
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):
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("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 = 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("LESS")
elif len(A)>len(B):
    print("GREATER")
else:
    cnt=0
    for i in range(len(A)):
        if A[i]>B[i]:
            print("GREATER")
            break
        elif A[i]<B[i]:
            print("LESS")
            break
        else:
            cnt+=1
    if cnt==len(A):
        print("EQUAL")

Solution (Python):
A = int(input())
B = int(input())
print("EQUAL" if A == B else "GREATER" 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())
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("EQUAL")
elif A<B:
    print("LESS")
else:
    print("GREATER")

Solution (Python):
s = int(input())
t = int(input())
if s == t:
  print('EQUAL')
elif s > t:
  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("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=input()
B=input()
flag="EQUAL"

if len(A)!=len(B):
    if(len(A)>len(B)):
        print("GREATER")
    else:
        print("LESS")
else:
    for i in range(len(A)):
        if A[i] > B[i]:
            flag="GREATER"
            break
            
        elif A[i] < B[i]:
            flag="LESS"
            break
    print(flag)

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

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

Solution (Python):
import sys

stdin = sys.stdin

ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split())) 
rs = lambda: stdin.readline().rstrip()  

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

Solution (Python):

 
import math
import itertools
import sys
import copy
 




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 'EQUAL' if a==b else 'LESS')

Solution (Python):

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

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


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

Solution (Python):

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

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

Solution (Python):
s=input()
t=input()
flag="EQUAL"
if len(s)>len(t):
  print("GREATER")
elif len(s)<len(t):
  print("LESS")
else:
  for i in range(len(s)):
    if int(s[i])>int(t[i]):
      flag="GREATER"
      break
    elif int(s[i])<int(t[i]):
      flag="LESS"
      break
  print(flag)

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

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):
import math

a, b = [int(input()) for i in range(2)]
print("GREATER" if a > b else "LESS" if a < b else "EQUAL")

Solution (Python):
a=input()
b=input()
x=max(len(a),len(b))
a=format(a).zfill(x)
b=format(b).zfill(x)
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):
import sys

a, b = sys.stdin.read().split()

def main():
    la = len(a)
    lb = len(b)
    if la > lb:
        return 'GREATER'
    elif la < lb:
        return 'LESS'
    else:
        for i in range(la):
            if a[i] > b[i]:
                return 'GREATER'
            elif a[i] < b[i]:
                return 'LESS'
        return 'EQUAL'
                
if __name__ == '__main__':
    ans = main()
    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):

import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf')
ans = 0 ;count = 0 ;pro = 1

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 'LESS' if a < b else 'EQUAL')

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

if len(a) != len(b):
    print('GREATER' if len(a) > len(b) else 'LESS' if len(a) < len(b) else 'EQUAL')
else:
    flg  = True
    for k,v in zip(a,b):
        if k > v:
            flg = False
            print('GREATER')
            break
        elif k < v:
            flg = False
            print('LESS')
            break
        else:
            pass
        
    if flg:
        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())
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):
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):
x = int(input())
y = int(input())
print("GREATER" if x > y else "LESS" if x < y 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):
A=int(input())
B=int(input())

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

Solution (Python):
import sys

A = int(sys.stdin.readline().rstrip())
B = int(sys.stdin.readline().rstrip())

answer = "EQUAL"

if A > B:
	answer = "GREATER"
elif A < B:
	answer = "LESS"

print(answer)

Solution (Python):

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a=ni()
b=ni()

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

Solution (Python):
from sys import stdin

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

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')
elif 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())
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("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())

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

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=input()
b=input()
if(len(a)>len(b)):
    print('GREATER')
elif(len(b)>len(a)):
    print('LESS')
else:
    fla,flb=0,0
    for i in range(len(a)):
        if(int(a[i])>int(b[i])):
            fla=1
            break
        if(int(b[i])>int(a[i])):
            flb=1
            break
    if(fla==0 and flb==0):
        print('EQUAL')
    elif(fla==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())

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

Solution (Python):
A = input()
B = input()
dA = len(A)
dB = len(B)
if dA > dB:
    print("GREATER")
elif dA < dB:
    print("LESS")
else:
    judge = 1
    for i in range(dA):
        if int(A[i]) > int(B[i]):
            print("GREATER")
            judge = 0
            break
        elif int(A[i]) < int(B[i]):
            print("LESS")
            judge = 0
            break
    if judge == 1:
        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()), 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):
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, 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):
def examB():
    A = S()
    B = S()
    if len(A)>len(B):
        ans = "GREATER"
    elif len(A)<len(B):
        ans = "LESS"
    else:
        i = 0; k = 0; cur = 0; loop = len(A)
        while i==k:
            if cur==loop:
                ans = "EQUAL"
                break
            i = int(A[cur])
            k = int(B[cur])
            if i>k:
                ans = "GREATER"
                break
            elif i<k:
                ans = "LESS"
                break
            cur +=1
    print(ans)

import sys
import copy
import bisect
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examB()

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

Solution (Python):
import sys
from functools import reduce
import copy
import math
from pprint import pprint
import collections
import bisect


sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def int_inputs(num_of_input):
    ins = [int(input()) for i in range(num_of_input)]
    return ins


def solve(inputs):
    A = inputs[0]
    B = inputs[1]
    if A == B:
        return 'EQUAL'
    if A > B:
        return 'GREATER'
    return 'LESS'


def string_to_int(string):
    return list(map(int, string.split()))


if __name__ == "__main__":
    ret = solve(int_inputs(2))
    print(ret)

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("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 collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

a = inp()
b = inp()
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):
def main(a, b):
    if a > b:
        print('GREATER')
    elif a < b:
        print('LESS')
    else:
        print('EQUAL')


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

    main(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('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("EQUAL")
if (A < B):
    print("LESS")
if (A > B):
    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()

ans = "EQUAL"
if len(a) > len(b):
    ans = "GREATER"
elif len(a) < len(b):
    ans = "LESS"
else:
    for i in range(len(a)):
        if a[i] != b[i]:
            if a[i] > b[i]:
                ans = 'GREATER'
                break
            else:
                ans = 'LESS'
                break

print(ans)

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

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

Solution (Python):
A = input()
B = input()
if A == B:
    print('EQUAL')
    exit()
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

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

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()
    if int(A[i]) < int(B[i]):
      print("LESS")
      exit()
  print("EQUAL")

Solution (Python):
A=int(input())
B=int(input())
if A==B:
    print('EQUAL')
else:
    print(['GREATER','LESS'][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("EQUAL")
elif A > B:
  print("GREATER")
else:
  print("LESS")

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

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

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

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

Solution (Python):



def main():

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

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






if __name__ == "__main__":
    main()

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

max_len = 105

if len(a) < max_len:
    a = '0' * (max_len - len(a)) + a

if len(b) < max_len:
    b = '0' * (max_len - len(b)) + b

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

import sys
if len(A)>len(B):
    print('GREATER')
    sys.exit()
elif len(A)<len(B):
    print('LESS')
    sys.exit()
else:
    for a,b in zip(A,B):
        if int(a)>int(b):
            print('GREATER')
            sys.exit()
        elif int(a)<int(b):
            print('LESS')
            sys.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):
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")
else:
  print("GREATER" if a>b else "LESS")

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

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