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

Solution (Python):
import math
a=math.log10(int(input()))
b=math.log10(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):
def slove():
    import sys
    input = sys.stdin.readline
    a = int(input().rstrip('\n'))
    b = int(input().rstrip('\n'))
    if a > b:
        print("GREATER")
    elif a < b:
        print("LESS")
    else:
        print("EQUAL")


if __name__ == '__main__':
    slove()

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

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

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

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

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

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

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

Solution (Python):
a,b=map(int,open(0).read().split())

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 = 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, B= [int(input()) for i in range(2)]
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):
s1 = int(input())
s2 = int(input())
if s1 - s2 >0:
  print("GREATER")
elif s2 == s1:
  print("EQUAL")
else:
  print("LESS")

Solution (Python):

a = input()
b = input()
la = len(a)
lb = len(b)

def B():
    if la > lb:
        return "GREATER"
    elif la < lb:
        return "LESS"
    else:
        for i in range(la):
            ai = int(a[i])
            bi = int(b[i])
            if ai > bi:
                return "GREATER"
            elif ai < bi:
                return "LESS"
        return "EQUAL"

print(B())

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

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

Solution (Python):
import sys
import collections
import copy
import math
def input(): return sys.stdin.readline().strip()
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:
    if A > B:
        print("GREATER")
    elif A < B:
        print("LESS")
    else: print("EQUAL")

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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


if __name__ == "__main__":
    main()

Solution (Python):
def 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,B=map(int,open(0));print("GELRQEEUSAASTL E  R"[(A<B)+(A<=B)::3])

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

Solution (Python):
a,b=map(int,open(0));print(("GREATER","EQUAL","LESS")[(a<=b)+(a<b)])

Solution (Python):
a = input()
b = input()
A = "GREATER"
B = "LESS"
AB = "EQUAL"

if len(a)>len(b):
  print(A)
elif len(a)<len(b):
  print(B)
elif a == b:
  print(AB)
else:
  list=[a,b]
  list.sort()
  if list[1] == a:
    print(A)
  else:
    print(B)

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

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

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

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

import sys


def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def ISI(): return map(int, sys.stdin.readline().rstrip().split())
def II(): return int(sys.stdin.readline().rstrip())
def ISS(): return sys.stdin.readline().rstrip().split()
def IS(): return sys.stdin.readline().rstrip()

A = II()
B = II()
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):
import sys
import copy
import  math
from _bisect import *
from collections import *
from operator import itemgetter
from math import factorial
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

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

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

Solution (Python):
A, B = [int(input()) for _ in range(2)]

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

Solution (Python):

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

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



import sys

input = sys.stdin.readline

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

Solution (Python):
a,b=map(int, open(0))
print('GREATER' if(a>b) else 'LESS' if(b>a) else 'EQUAL')

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

a = len(A)
b = len(B)

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

for i in range(a):
    c = int(A[i])
    d = int(B[i])
    if c > d:
        print ('GREATER')
        exit()
    elif c < d:
        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())
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 = 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','EQUAL','LESS',][2*(a<b)+(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):
def main():

    A = input()
    B = input()
    if len(A) > len(B):
        return "GREATER"
    elif len(A) < len(B):
        return "LESS"
    else:
        for i in range(len(A)):
            if int(A[i]) > int(B[i]):
                return "GREATER"
            elif int(A[i]) < int(B[i]):
                return "LESS"
        return "EQUAL"

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

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

if a>b:
  print('GREATER')
elif b>a:
  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):
import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop


def main():
    a = int(input())
    b = int(input())
    if a > b:
        print('GREATER')
        return
    if a < b:
        print('LESS')
        return

    print('EQUAL')


if __name__ == '__main__':
    main()

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

A = math.log(A)
B = math.log(B)

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

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

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

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


if __name__ == "__main__":
    resolve()

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

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

Solution (Python):


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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

import sys
INF = float("inf")


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


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)


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())
print(["LESS","GREATER","EQUAL"][(A>=B)+(A==B)])

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

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

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

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

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

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

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

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

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

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

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
import itertools
import random
 




 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A = inputInt()
    B = inputInt()
    
    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 = input()
B = input()
max_len = max(len(A), len(B))
A = A.zfill(max_len)
B = B.zfill(max_len)

for a, b in zip(A, B):
  if int(a) > int(b):
    print("GREATER")
    exit()
  elif int(a) < int(b):
    print("LESS")
    exit()
  else:
    pass

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

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

Solution (Python):
A=input()
B=input()
def judge(A,B):
    if len(A)>len(B):
        print("GREATER")
        return
    elif len(A)<len(B):
        print("LESS")
        return
    else:
        i=0
        while i<len(A):
            a=A[i]
            b=B[i]
            if a>b:
                print("GREATER")
                return
            elif a==b:
                i+=1
                continue
            else:
                print("LESS")
                return
        print("EQUAL")
        return
judge(A,B)

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

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

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