Problem:
 Score : 200 points    Problem Statement You are given two positive integers A and B . Compare the magnitudes of these numbers.      Constraints  1 ≤ A, B ≤ 10^{100}  Neither A nor B begins with a 0 .         Input Input is given from Standard Input in the following format:  A  B       Output Print GREATER if A>B , LESS if A<B and EQUAL if A=B .        Sample Input 1 36
24      Sample Output 1 GREATER  Since 36>24 , print GREATER .       Sample Input 2 850
3777      Sample Output 2 LESS       Sample Input 3 9720246
22516266      Sample Output 3 LESS       Sample Input 4 123456789012345678901234567890
234567890123456789012345678901      Sample Output 4 LESS

Solution (Python):


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

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

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

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

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

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

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

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

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

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

Solution (Python):
a=int(input())-int(input());print(a>0and'GREATER'or a and'LESS'or'EQUAL')

Solution (Python):
a=int(input())-int(input());print(a>0and'GREATER'or a<0and'LESS'or'EQUAL')

Solution (Python):
a=input();b=input();print a<b and'LESS'or a>b and'GREATER'or'EQUAL'

Solution (Python):
a=int(input())-int(input());print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')

Solution (Python):
a=(int)(input())-(int)(input());print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')

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

Solution (Python):


sA = raw_input()
sB = raw_input()

A = int(sA)
B = int(sB)

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

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

if A > B:
	print("GREATER")

elif A < B:
	print("LESS")

else:
	print("EQUAL")

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

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

Solution (Python):
a=raw_input()
b=raw_input()
if len(a)<len(b):
	print "LESS"
elif len(a)>len(b):
	print "GREATER"
else:
	p=0
	flag=True
	while flag and p<len(a):
		if a[p]<b[p]:
			print "LESS"
			flag=False
		elif a[p]>b[p]:
			print "GREATER"
			flag=False
		else:
			pass
		p+=1
	if flag:
		print "EQUAL"

Solution (Python):
a=int(raw_input())
b=int(raw_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("GREATER")
else:
    print("LESS")

Solution (Python):
a = int(raw_input())
b = int(raw_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:
    ans = 'GREATER'
elif A<B:
    ans = 'LESS'
elif A==B:
    ans = 'EQUAL'

print(ans)

Solution (Python):
a=int(input())-int(input());print('GREATER'if a>0else'LESS'if a 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):

import math

if __name__ == "__main__":
    a = raw_input()
    b = raw_input()

    if len(a) > len(b):
        print "GREATER"
    elif len(a) < len(b):
        print "LESS"
    elif len(a) == len(b):
        for i in range(len(a)):
            if a[i] > b[i]:
                print "GREATER"
                break
            elif a[i] < b[i]:
                print "LESS"
                break
            elif a[i] == b[i] and i == len(a) - 1:
                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 read(): return list(map(int, input().split()))


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

if a == b:
    print("EQUAL")
    sys.exit()

print("GREATER" if a > b else "LESS")

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

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

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

    print(ans)

if __name__ == '__main__':
    solve()

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

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

Solution (Python):
a=input();b=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 = 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()) 
print(a > b and "GREATER" or (a == b and "EQUAL" or "LESS"))

Solution (Python):

a = raw_input()
b = raw_input()
a = int(a)
b = int(b)
g = "GREATER"
l = "LESS"
e = "EQUAL"
if a<b:
	print l
elif a>b:
	print g
else:
	print e

Solution (Python):



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

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

Solution (Python):
A = int(raw_input())
B = int(raw_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 = input()
b = input()
A = int(a)
B = int(b)

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

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

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

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

Solution (Python):


a = []
count = 0
while True:
    n = input()
    a.append(n)
    count+=1
    if count==2:
        break

if a[0]>a[1]:
    print ("GREATER")
elif a[0]==a[1]:
    print("EQUAL")
else :
    print("LESS")

Solution (Python):
a = int(raw_input())
b = int(raw_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')
elif A == B:
  print('EQUAL')

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

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

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

Solution (Python):
inp = [input() for i in range(2)]

A = int(inp[0])
B = int(inp[1])

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

Solution (Python):

import sys
A = input()
B = input()

def show(num):
    if num == 0:
        print('EQUAL')
    if num > 0:
        print('GREATER')
    else:
        print('LESS')

if(len(A) != len(B)):
    show(len(A)-len(B))
    sys.exit(0)

for i in range(len(A)):
    a = int(A[i])
    b = int(B[i])
    if(a != b):
        show(a-b)
        sys.exit(0)

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")
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(raw_input())
b=int(raw_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):
n1 = int(input())
n2 = int(input())

if n1 > n2:
    print("GREATER")
elif n1 < n2:
    print("LESS")
else:
    print("EQUAL")

Solution (Python):
def main():
    A = int(str(input()))
    B = int(str(input()))

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

main()

Solution (Python):
import sys
a = list(raw_input())
b = list(raw_input())

if len(a) > len(b):
    print 'GREATER'
    sys.exit(0)
if len(b) > len(a):
    print 'LESS'
    sys.exit(0)

if len(a) == len(b):
    flag = 'equal'
    for i in xrange(len(a)):
        if a[i] > b[i]:
            flag = 'greater'
            break
        if b[i] > a[i]:
            flag = 'less'
            break
    print flag.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 ('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 = input()
B = input()
if A == B:
    print("EQUAL")

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

Solution (Python):
import sys
import math

INF = 10**9+7

def k(i):
    if(i == 1):
        return 1
    else:
        return(i * k(i-1))

def comb(n, r):
    if(n == r or r == 1):
        return 1
    else:
        return k(n) / (k(n-r) * k(r))

stdin = sys.stdin
def na(): return map(int, stdin.readline().split())
def ns(): return stdin.readline().strip()
def nsl(): return list(stdin.readline().strip())
def ni(): return int(stdin.readline())
def nil(): return list(map(int, stdin.readline().split()))

a = ns()
b = ns()


an = len(a)
bn = len(b)


if(an > bn):
    print("GREATER")
    exit()
elif(an < bn):
    print("LESS")
    exit()

for i in range(an):
    if(a[i] > b[i]):
        print("GREATER")
        exit()
    elif(b[i] > a[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())

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

Solution (Python):

a = raw_input()
b = raw_input()
a = int(a)
b = int(b)
g = "GREATER"
l = "LESS"
e = "EQUAL"
if a<b:
	print l
elif a>b:
	print g
else:
	print e

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

if in1 > in2:
    ans = 'GREATER'
elif in1 < in2:
    ans = 'LESS'
else:
    ans = 'EQUAL'

print(ans)

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

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

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

Solution (Python):
import sys

def main():
    a = int(sys.stdin.readline().rstrip())
    b = int(sys.stdin.readline().rstrip())

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

    return 0

if __name__ == '__main__':
    sys.exit(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):
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()

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

Solution (Python):


if __name__ == "__main__":
	a = int(input())
	b = int(input())

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

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

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


if __name__ == "__main__":
    a = int(raw_input())
    b = int(raw_input())

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

Solution (Python):
a = int(raw_input())
b = int(raw_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')
else:
    print(('GREATER','LESS')[A<B])

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

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

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

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

Solution (Python):


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

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