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-----
36
24

-----Sample Output-----
GREATER

Since 36>24, print GREATER.

Difficulty: introductory

Starter code:

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

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

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

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

print(ans)

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

if A > B:
    print("GREATER")

if A < B:
   print("LESS")

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

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

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


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

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


#n = int(input())
#a, b = map(int,input().split())
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
a = str(input())
b = str(input())
if len(a) < len(b):
    ans = 'LESS'
elif len(a) > len(b):
    ans = 'GREATER'
else:
    n = len(a)
    ans = 'EQUAL'
    for i in range(n):
        if a[i] < b[i]:
            ans = 'LESS'
            break
        elif a[i] > b[i]:
            ans = 'GREATER'
            break
print(ans)


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

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

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

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

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

a,b=int(input()),int(input());print(['ELQEUSASL'[a<b::2],'GREATER'][a>b])

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

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

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

# coding: utf-8
import math

num1 = int(input())
num2 = int(input())
if num1 == num2:
    print("EQUAL")
elif num1 > num2:
    print("GREATER")
elif num1 < num2:
    print("LESS")


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


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

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

A = input()
B = input()

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

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

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

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

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

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

a = input()
b = input()

len_a = len(a)
len_b = len(b)

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

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

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


#ABC059B
a = int(input())
b = int(input())
print("GREATER" if a>b else "LESS" if a<b else "EQUAL")

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


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

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

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

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

#59B
A=int(input())
B=int(input())
if A>B:
    print('GREATER')
elif A<B:
    print('LESS')
else:
    print('EQUAL')

A = int(input())
B = int(input())
diff = A - B

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


a = input()
b = input()
l = max(len(a), len(b))

for i,j in zip(a.zfill(l), b.zfill(l)):
  if int(i) > int(j):
    print("GREATER")
    break
  elif int(i) < int(j):
    print("LESS")
    break
else:
  print("EQUAL")


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

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

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

import sys, math
from itertools import combinations as c, product as p
from collections import deque
sys.setrecursionlimit(10**9)
INF = float('inf')
MOD = 10**9 + 7
#MOD = 998244353


def si(): return input()
def ii(): return int(input())
def fi(): return float(input())
def lstr(): return input().split()
def lint(): return list(map(int, input().split()))
def lintdec(): return list(map(lambda x:int(x) - 1, input().split()))
def lnstr(n): return [input() for _ in range(n)]
def lnint(n): return [int(input()) for _ in range(n)]
def lint_list(n): return [lint() for _ in range(n)]



############################################################
A = ii()
B = ii()

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

#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

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

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

def __starting_point():
    main()
__starting_point()

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

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


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

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

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

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

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

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

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

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

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

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

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

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


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

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

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



a=int(input())
b=int(input())
import math
if math.sqrt(a)==math.sqrt(b):
  print("EQUAL")
elif math.sqrt(a)>math.sqrt(b):
  print("GREATER")
elif math.sqrt(a)<math.sqrt(b):
  print("LESS")

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


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

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

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

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

a=int(input())
b=int(input())
import math
if math.sqrt(a)==math.sqrt(b):
  print("EQUAL")
elif math.sqrt(a)>math.sqrt(b):
  print("GREATER")
elif math.sqrt(a)<math.sqrt(b):
  print("LESS")

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

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

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

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

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

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

#
# abc059 b
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """36
24"""
        output = """GREATER"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """850
3777"""
        output = """LESS"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """9720246
22516266"""
        output = """LESS"""
        self.assertIO(input, output)

    def test_入力例_4(self):
        input = """123456789012345678901234567890
234567890123456789012345678901"""
        output = """LESS"""
        self.assertIO(input, output)


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

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


def __starting_point():
    # unittest.main()
    resolve()

__starting_point()

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

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

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


def __starting_point():
    main()

__starting_point()

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

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

A = input()
B = input()

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

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

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

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

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

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

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

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

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

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

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

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

#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

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

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

def __starting_point():
    main()
__starting_point()

a=list(map(int, input().split()))
b=list(map(int, input().split()))
if len(a) > len(b):
    print('GREATER')
    return
elif len(a) < len(b):
    print('LESS')
    return
else:
    for i in range(len(a)):
        if a[i] > b[i]:
            print('GREATER')
            return
        elif a[i] < b[i]:
            print('LESS')
            return
print('EQUAL')

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

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

def answer(a: str, b: str) -> str:
    if a == b:
        return 'EQUAL'

    if a < b or len(a) < len(b):
        return 'LESS'

    if a > b or len(a) > len(b):
        return 'GREATER'


def main():
    a = input()
    b = input()
    print(answer(a, b))


def __starting_point():
    main()
__starting_point()

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

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

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

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

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

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

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

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

import sys
import copy
import math
import itertools
import numpy as np
A = int(input())
B = int(input())
if A>B:
    print("GREATER")
elif A<B:
    print("LESS")
elif A==B:
    print("EQUAL")

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

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

A = float(input())
B = float(input())

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


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

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


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

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

a,b = [int(input()) for i in range(2)]

if a>b:
    print("GREATER")

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

def answer(a: int, b: int) -> str:
    if a == b:
        return 'EQUAL'

    if a < b:
        return 'LESS'

    if a > b:
        return 'GREATER'


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


def __starting_point():
    main()
__starting_point()

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

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

A, B = int(input()), int(input())
if A > B:
    print('greater'.upper())
if A < B:
    print('less'.upper())
if A == B:
    print('equal'.upper())