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

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):
a=list(map(int, input().split()))
b=list(map(int, input().split()))
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):

import sys


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

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


if __name__ == '__main__':
    main()

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


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

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

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

Solution (Python):
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")

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)]
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, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext

def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a = i_input()
    b = i_input()

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

if __name__=="__main__":
    main()

Solution (Python):

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

if __name__=="__main__":
    main()

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

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

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

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

print(ans)

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

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

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

Solution (Python):
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")

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

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

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):
def main():
    a, b = input(), input()
    len_a, len_b = len(a), len(b)

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


if __name__ == "__main__":
    main()

Solution (Python):
import sys
import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

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

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, B = int(input()), int(input())
if A > B:
    print('greater'.upper())
if A < B:
    print('less'.upper())
if A == B:
    print('equal'.upper())

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 math

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

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

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

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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

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

if __name__ == "__main__":
    solve()

Solution (Python):
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

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

    if b < a:
        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,b = [int(input()) for i in range(2)]

if a>b:
    print("GREATER")

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

Solution (Python):



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


if __name__ == "__main__":
    
    resolve()

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
x=int(input())
y=int(input())
if(x>y):
    print('GREATER')
elif(x<y):
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
A = input()
B = input()
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)):
        a = int(A[i])
        b = int(B[i])
        if a > b:
            print('GREATER')
            break
        elif b > a:
            print('LESS')
            break

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

Solution (Python):
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")

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

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

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

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

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

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

if a>b:
    print("GREATER")

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):
def actual(A, B):
    if A > B:
        return 'GREATER'

    if A < B:
        return 'LESS'

    return 'EQUAL'


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

print(actual(A, B))

Solution (Python):
from sys import stdin
from numpy import argmin

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

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

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

Solution (Python):
import math
A = input()
B = input()
if len(A)>len(B):
  print("GREATER")
elif len(A)<len(B):
  print("LESS")
else:
  while 1:
    if int(A[0])>int(B[0]):
      print("GREATER")
      break
    elif int(A[0])<int(B[0]):
      print("LESS")
      break
    else:
      if len(A)!=1:
        A = A[1:]
        B = B[1:]
      else:
        if int(A)>int(B):
          print("GREATER")
          break
        elif int(A)<int(B):
          print("LESS")
          break
        else:
          print("EQUAL")
          break

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('LESS')
elif b<a:
    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 = input()
b = input()
la = len(a)
lb = len(b)
if la < lb:
    print("LESS")
elif la > lb:
    print("GREATER")
else:
    cas = list(a)
    cbs = list(b)
    for i in range(la):
        if int(cas[i]) > int(cbs[i]):
            print("GREATER")
            exit()
        elif int(cas[i]) < int(cbs[i]):
            print("LESS")
            exit()
    print("EQUAL")

Solution (Python):
def f(a, b):
	if len(a) != len(b):
		return 'GREATER' if len(a) > len(b) else 'LESS'
	for u,v in zip(a,b):
		if int(u) < int(v):
			return 'LESS'
		elif int(u) > int(v):
			return 'GREATER'
	return  'EQUAL'

print f(raw_input(), raw_input())

Solution (Python):
def resolve():
    a = int(input())
    b = int(input())
    if a > b:
        print('GREATER')
    elif a < b:
        print('LESS')
    else:
        print('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,B = (int(input()) for T in range(0,2))
if A==B:
    print('EQUAL')
else:
    print(['GREATER','LESS'][A<B])

Solution (Python):
A,B = (input() for T in range(0,2))
if len(A)!=len(B):
    print(['GREATER','LESS'][len(A)<len(B)])
else:
    EqualFlag = True
    for TL in range(0,len(A)):
        if A[TL]!=B[TL]:
            EqualFlag = False
            break
    if EqualFlag:
        print('EQUAL')
    else:
        print(['GREATER','LESS'][A[TL]<B[TL]])

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():
    import sys
    input = sys.stdin.readline
    
    
    

    a = int(input().rstrip())
    b = int(input().rstrip())

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

if __name__ == "__main__":
    resolve()

Solution (Python):
A = list(input())
B = list(input())
result = 'EQUAL'
if len(A) > len(B):
    result = 'GREATER'
elif len(B) > len(A):
    result = 'LESS'
else:
    for i in range(len(A)):
        if A[i] > B[i]:
            result ='GREATER'
            break
        elif B[i] > A[i]:
            result = 'LESS'
            break
print(result)

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")
elif 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:
            pass
    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
def input(): return sys.stdin.readline().strip()

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

if __name__ == "__main__":
    main()

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
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

Solution (Python):
A=input()
B=input()
a=len(A)
b=len(B)

def less():
  print('LESS')
  exit()
def greater():
  print('GREATER')
  exit()
def equals():
  print('EQUAL')
  exit()

if a<b:
  less()
if a>b:
  greater()
for i in range(a):
  if int(A[i])<int(B[i]):
    less()
  if int(A[i])>int(B[i]):
    greater()
else:
  equals()

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

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

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

if A > B:
  ans = "GREATER"
elif A < B:
  ans = "LESS"
else:
  ans = "EQUAL"

print(ans)

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

Solution (Python):
s = input()
t = input()
if len(s) < len(t):
  print("LESS")
elif len(s) > len(t):
  print("GREATER")
else:
  for i in range(len(s)):
    if int(s[i]) < int(t[i]):
      print("LESS")
      break
    elif int(s[i]) > int(t[i]):
      print("GREATER")
      break
  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")
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 = input()
B = input()
finished = False
 
if len(A) > len(B):
  print("GREATER")
  finished = True
elif len(A) < len(B):
  print("LESS")
  finished = True
else:
  for i in range(len(A)):
    if A[i] > B[i]:
      print("GREATER")
      finished = True
      break
    elif A[i] < B[i]:
      print("LESS")
      finished = True
      break
 
if not finished:
  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, b = map(int, [int(input()) for i 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):
import sys


inint = lambda: int(sys.stdin.readline())
inintm = lambda: map(int, sys.stdin.readline().split())
inintl = lambda: list(inintm())
instrm = lambda: map(str, sys.stdin.readline().split())
instrl = lambda: list(instrm())

a = inint()
b = inint()

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

Solution (Python):








a = input()
b = input()

al = len(a)
bl = len(b)

if (al > bl):
    print("GREATER")
elif (al < bl):
    print("LESS")
else:
    for i in range(al):
        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):
    ans = 'GREATER'
elif len(A) < len(B):
    ans = 'LESS'
elif len(A) == len(B):
    ans = 'EQUAL'
    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")
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())
k=2
if a>b:k=0
elif a<b:k=1
print(('GREATER','LESS','EQUAL')[k])

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):
import sys
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):
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')

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

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