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("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):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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

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

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

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

Solution (Python):

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

if A > B:
    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')
else:
    f=0
    for i in range(len(a)):
        if a[i]>b[i]:
            print('GREATER')
            break
        elif a[i]<b[i]:
            print('LESS')
            break
        else:
            f+=1
            continue
    if f==len(a):
        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)>0 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):
import sys
import os

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A = int(sys.stdin.buffer.readline().rstrip())
    B = int(sys.stdin.buffer.readline().rstrip())
    print('GREATER' if A > B else 'LESS' if A < B else '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())

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

Solution (Python):












mod = int(1e9+7)
INF = 1<<29
lINF = 1<<35

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

if __name__=='__main__':
    main()

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

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

Solution (Python):
from __future__ import print_function

import sys

import re
import array
import copy
import functools
import operator

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd



import collections
import itertools
import bisect

import random
import time

import heapq
from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace
from queue import PriorityQueue as pq
from queue import Queue

from itertools import accumulate

from collections import deque
from collections import Counter

from operator import mul
from functools import reduce

input = sys.stdin.readline


def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return


def lcm(n, m):
    return int(n * m / gcd(n, m))


def coprimize(p, q):
    common = fractions.gcd(p, q)
    return (p // common, q // common)


def combinations_count(n, r):
    r = min(r, n - r)
    numer = reduce(mul, range(n, n - r, -1), 1)
    denom = reduce(mul, range(1, r + 1), 1)
    return numer // denom


def main():
    a = int(input().strip())
    b = int(input().strip())
    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):
def main():
    A = int(input())
    B = int(input())

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

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):
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):
l = [int(input()) for i in range(2)]
a = 0
for n in l:
  if a == 0:
    a = n
  elif a > n:
    print('GREATER')
  elif a < n:
    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')
else:
  print('EQUAL')

Solution (Python):








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

resolve()

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

Solution (Python):

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

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

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

Solution (Python):


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

if A == B:
    print('EQUAL')

elif A > B:
    print('GREATER')

else:
    print('LESS')

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a=I()
    b=I()
    
    if a==b:
        print("EQUAL")
    elif a>b:
        print("GREATER")
    else:
        print("LESS")

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

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

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

Solution (Python):

import sys


def solve(A: int, B: int):
    print(["EQUAL", "GREATER", "LESS"][(A > B) - (A < B)])


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

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

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

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

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

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

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

Solution (Python):
a = int(input())
b = int(input())
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 = input()
b = input()
c = len(a)
d = len(b)
if c>d:
    print('GREATER')
elif c<d:
    print('LESS')
else:
    for x, y in zip(a,b):
        if x<y:
            print('LESS')
            exit()
        if x>y:
            print('GREATER')
            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):
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('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('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):
def main():
    A = list(input())
    B = list(input())
    if A == B:
        print("EQUAL")
    elif len(A) > len(B):
        print("GREATER")
    elif len(A) < len(B):
        print("LESS")
    else:
        for a, b in zip(A, B):
            if a > b:
                print("GREATER")
                break
            elif a < b:
                print("LESS")
                break


if __name__ == '__main__':
    main()

Solution (Python):
A = input()
B = input()
tmp = max(len(A),len(B))

A = A.zfill(tmp)
B = B.zfill(tmp)
print('LESS') if A<B else print('GREATER') if A>B 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("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("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"*(a>b) or "LESS"*(a<b) or "EQUAL")

Solution (Python):




A,B = [int(input().strip()) for _ in range(2)]


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

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

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

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

Solution (Python):

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

if la>lb:
    print('GREATER')
elif la<lb:
    print('LESS')
else:
    Flg=True
    for i in range(la):
        if int(str(a)[i])>int(str(b)[i]):
            print('GREATER')
            Flg=False
            break
        elif int(str(a)[i])<int(str(b)[i]):
            print('LESS')
            Flg=False
            break
    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('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):
s=[input() for _ in range(2)]
a_len=len(s[0])
b_len=len(s[1])
if s[0]==s[1]:
    print("EQUAL")
elif a_len>b_len:
    print("GREATER")
elif a_len<b_len:
    print("LESS")
else:
    t=sorted(s)
    if s[0]==t[0]:
        print("LESS")
    else:
        print("GREATER")

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

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

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

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

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

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

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

if A > B:
    print('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=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("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("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')
elif 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):




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

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):
def gle(a , b):
    ans = ""
    if a == b:
        ans = "EQUAL"
    elif a > b:
        ans = "GREATER"
    else:
        ans = "LESS"
    return ans

def main():
    a = int(input())
    b = int(input())
    print(gle(a , b))

if __name__ == '__main__':
    main()

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, log2
from itertools import 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
from bisect import bisect

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()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

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

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

Solution (Python):
al = list(map(int, input()))
bl = list(map(int, input()))
if len(al) > len(bl):
  print('GREATER')
  quit()
elif len(al) < len(bl):
  print('LESS')
  quit()
for a, b in zip(al, bl):
  if a > b:
    print('GREATER')
    quit()
  elif a < b:
    print('LESS')
    quit()
else:
  print('EQUAL')

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

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

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

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

Solution (Python):
a = int(input())
b = int(input())
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):
"""
author : halo2halo
date : 31, Jan, 2020
"""

import sys




read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

H, W = map(int, read().split())

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

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

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

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

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

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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.readline()[:-1]

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a=INT()
    b=INT()
    A=str(a)
    B=str(b)
    flg=2
    if len(A)>len(B):
        flg=0
    elif len(A)<len(B):
        flg=1
    else:
        for i in range(len(A)):
            if int(A[i])>int(B[i]):
                flg=0
                break
            elif int(A[i])<int(B[i]):
                flg=1
                break
            else:
                pass
        
    if flg==0:
        print('GREATER')
    elif flg==1:
        print('LESS')
    else:
        print('EQUAL')
if __name__ == '__main__':
    do()

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