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


if '__main__' == __name__:
    resolve()

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

Solution (Python):

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

if a > b:
    print('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())
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

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


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

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


if __name__ == '__main__':
    resolve()

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

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

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

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 = 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):
import sys
from collections import Counter
readline = sys.stdin.buffer.readline
MOD = 10**9+7

def main():
    A = int(readline())
    B = int(readline())
    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 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):
n1=int(input())
n2=int(input())
if n1>n2 :print("GREATER")
if n1==n2:print("EQUAL")
if n1<n2 :print("LESS")

Solution (Python):
A,B = map(int,open(0).read().split())
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("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):
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())

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

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

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

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

Solution (Python):
a = input()
b = input()
n = max(len(a),len(b))

b = b.zfill(n)
a = a.zfill(n)

for i in range(n):
  if int(a[i])>int(b[i]):
    print("GREATER")
    exit()
  elif int(a[i])<int(b[i]):
    print("LESS")
    exit()

print("EQUAL")

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

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

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

Solution (Python):

A = 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):
def solve(i, j):
    if i > j:
        print("GREATER")
        exit()
    if i < j:
        print("LESS")
        exit()
a = input()
b = input()
solve(len(a), len(b))
if int(a) == int(b):
    print("EQUAL")
    exit()
for ai, bi in zip(a, b):
    solve(int(ai), int(bi))

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

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

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

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

Solution (Python):

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

Solution (Python):
n,m=map(int,open(0))
print('GREATER' if n>m else 'ELQEUSASL'[n<m::2])

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

Solution (Python):

n=int(input())
m=int(input())
if n>m:
    print('GREATER')
elif n==m:
    print('EQUAL')
else:
    print('LESS')

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

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

Solution (Python):

def myAnswer(A:int,B:int)-> str:
   if(A >B): return "GREATER"
   if(A<B): return "LESS"
   if(A==B): return "EQUAL"

def modelAnswer():
   tmp=1
def main():
   A = int(input())
   B = int(input())
   print(myAnswer(A,B))

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):
import collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
MOD = 10**9+7
import itertools
import math

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

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


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

LA = len(A)
LB = len(B)

if LA > LB:
    ans = 'GREATER'
elif LA < LB:
    ans = 'LESS'
else:
    for a, b in zip(A, B):
        if a > b:
            ans = 'GREATER'
            break
        elif a < b:
            ans = 'LESS'
            break
    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")
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")
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, b = [input() for _ in range(2)]

if len(a) > len(b):
    print('GREATER')
elif len(a) < len(b):
    print('LESS')
else:
    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
>
B
 のときGREATER、
A
<
B
 のときLESS、
A
=
B
 のときEQUALと出力せよ。

"""
A,B=map(int,open(0).read().split())
if A>B:ans="GREATER"
if A<B:ans="LESS"
if A==B:ans="EQUAL"
print(ans)

Solution (Python):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
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):
import sys

def solve():
    A = int(input())
    B = int(input())
    if A > B: print("GREATER")
    elif A < B: print("LESS")
    else: print("EQUAL")
            
    return 0

if __name__ == "__main__":
    solve()

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

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

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

Solution (Python):
def main():
    a = int(input())
    b = int(input())
    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):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
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
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 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())

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

Solution (Python):
A=input().rstrip()
B=input().strip()
if len(A)>len(B): print("GREATER")
elif len(A)<len(B): print("LESS")
else:
  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,s=int(input()),int(input())
print("GREATER" if a>s else "LESS" if a<s else "EQUAL")

Solution (Python):
a = input()
b = input()
if len(a) > len(b):
    ans = 'GREATER'
elif len(b) > len(a):
    ans = 'LESS'
elif a > b:
    ans = 'GREATER'
elif b > a:
    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())
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):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
a = ii()
b = ii()

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

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

if len(a)==len(b):
    for i in range(len(a)):
        if a[i]>b[i]:
            print("GREATER")
            quit()
        elif a[i]<b[i]:
            print("LESS")
            quit()
            
elif len(a)>len(b):
    print("GREATER")
    quit()
else:
    print("LESS")
    quit()

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

AsubB = A - B

if AsubB < 0:
    print("LESS")
elif AsubB > 0:
    print("GREATER")
else:
    print("EQUAL")

Solution (Python):
a, b = map(int, open(0))
print([["LESS","GREATER"][a>b], "EQUAL"][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('LESS')
elif a==b:
  print('EQUAL')
else:
  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 = input()
b = input()

lena=len(a)
lenb=len(b)

s = [a,b]
s.sort()

ans = 0
if lena>lenb:
  ans = a
elif lena<lenb:
  ans = b
elif s[0] == s[1]:
  ans = 0
else:
  ans = s[1]
  
if ans==0:
  print("EQUAL")
elif ans==a:
  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, 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())
print("GREATER" if a>b else "LESS" if a<b else "EQUAL")

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


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

print(result)

Solution (Python):




"""def kiri(n,m):
  r_ = n / m
  if (r_ - (n // m)) > 0:
    return (n//m) + 1
  else:
    return (n//m)"""








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

Solution (Python):

import math
import itertools
import statistics

import collections



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):
ans = ["GREATER", "LESS", "EQUAL"]
A = int(input())
B = int(input())
if A > B:
    print(ans[0])
elif A == B:
    print(ans[2])
else:
    print(ans[1])

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):
n=int(input())

s=int(input())

if s<n:
    print('GREATER')
elif s==n:
    print('EQUAL')
else:
    print('LESS')

Solution (Python):

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

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

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

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

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

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

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

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

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

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

Solution (Python):


import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

a = ns()
b = ns()

if len(a) > len(b):
    c = ''.join(['0' for _ in range(len(a) - len(b))])
    b = c + b
elif len(a) < len(b):
    c = ''.join(['0' for _ in range(len(b) - len(a))])
    a = c + a

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

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

A_s =str(A)
B_s = str(B)

if len(A_s) > len(B_s):
    print("GREATER")
elif len(A_s) < len(B_s):
    print("LESS")
else:
    for i in range(len(A_s)):
        if A_s[i] > B_s[i]:
            print("GREATER")
            break
        elif A_s[i] < B_s[i]:
            print("LESS")
            break
        elif (A_s[i] == B_s[i]) & (i == len(A_s)-1):
            print("EQUAL")
            break

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