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



Sample input:
36
24


Sample output:
GREATER

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
A=len(a)
B=len(b)
if A<B:
    print("LESS")
elif B<A:
    print("GREATER")
else:
    for i in range(A):
        if int(a[i])<int(b[i]):
            print("LESS")
        elif int(b[i])<int(a[i]):
            print("GREATER")
        elif int(a[i])==int(b[i]) and i==A-1:
            print("EQUAL")

Submission status: Wrong Answer

Solution code:
n=input()
nl=len(n)
m=input()
ml=len(m)
if nl>ml:
  print('GREATER')
elif nl<ml:
  print('LESS')
else:
  for i in range(nl):
    if int(n[i])>int(m[i]):
      print('GREATER')
      break
    elif int(n[i])<int(m[i]):
      print('LESS')
      break
    else:
      continue
    if i==nl:
      print('EQUAL')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007

#A
"""
s = LS()
print(s[0][0].upper()+s[1][0].upper()+s[2][0].upper())
"""
#B
a,b = IR(2)
if a > b:
    print("LESS")
elif a == b:
    print("EQUAL")
else:
    print("GREATER")
#C
"""
n = I()
a = LI()
b = [a[i] for i in range(n)]
ans = 0
k = a[0]
if a[0] == 0:
    a[0] = 1
    ans = 1
    k = 1
for i in range(1,n):
    if k*(k+a[i]) >= 0:
        if k < 0:
            ans += abs(1-k-a[i])
            a[i] = 1-k
            k = 1
        else:
            ans += abs(-1-k-a[i])
            a[i] = -1-k
            k = -1
    else:
        k += a[i]
if b[0] >= 0:
    ans2 = b[0]+1
    k = -1
    b[0] = -1
else:
    ans2 = 1-b[0]
    k = 1
    b[0] = 1
for i in range(1,n):
    if k*(k+b[i]) >= 0:
        if k < 0:
            ans2 += abs(1-k-b[i])
            b[i] = 1-k
            k = 1
        else:
            ans2 += abs(-1-k-b[i])
            b[i] = -1-k
            k = -1
    else:
        k += b[i]
print(min(ans,ans2))
"""
#D
"""
x,y = LI()
if abs(x-y) <= 1:
    print("Brown")
else:
    print("Alice")
"""
#E

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())-int(input());print(a and'GREATER'or'ELQEUSASL'[a<0::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str_a = input()
str_b = input()

int_len = len(str_a) if len(str_a) > len(str_b) else len(str_b)



for x, y in zip(str_a.zfill(int_len), str_b.zfill(int_len)):
    if int(x) > int(y):
        print("GREATHER")
        exit(0)
    elif int(x) < int(y):
        print("LESS")
        exit(0)
    else:
        pass
print("EQUAL")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = input().strip()
B = input().strip()

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

Submission status: Wrong Answer

Solution code:
a=int(input())-int(input())
print(['LESS','EQUAL','GREATER'][a>=0 + a==0])

Submission status: Wrong Answer

Solution code:
a=int(input())-int(input())
print(['LESS','GREATER','EQUAL'][a>=0 or a==0])

Submission status: Wrong Answer

Solution code:
# coding: utf-8
A = input()
B = input()
print("GREATER" if A>B else "LESS" if A<B else "EQUAL")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import sys
A = input()
B = input()

if len(A)>len(B):
    print("GREATER")
elif len(A)<len(B):
    print("LESS")
elif len(A)==len(B):
    for a, b in zip(A, B):
        a, b = int(a), int(b)
        if a>b:
            print("GREATER")
            sys.exit()
        elif a<b:
            print("LESS")
            sys.exit()
        else:
            ("EQUAL")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import sys
A = input()
B = input()

if len(A)>len(B):
    print("GREATER")
elif len(A)<len(B):
    print("LESS")
else:
    for a, b in zip(A, B):
        a, b = int(a), int(b)
        if a>b:
            print("GREATER")
            sys.exit()
        elif a<b:
            print("LESS")
            sys.exit()
        else:
            ("EQUAL")

Submission status: Wrong Answer

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

if len(A) != len(B):
    print("GREATER" if len(A)>len(B) else "LESS")
else:
    for i in range(len(A)):
        isGreater = True
        if A[i] < B[i]:
            isGreater = False
            break
    print("GREATER" if isGreater else "LESS")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if len(a)>len(b):
    print('GREATER')
elif len(a)<len(b):
    print('LESS')
else:
    for i in range(0, len(a)):
        if a[i]>b[i]:
            print('GREATER')
            break
        elif a[i]<b[i]:
            print('LESS')
            break
        print('EQUAL')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())-int(input())
if x>0:
  print("GREATER")
if x==0:
  print("EQUAL")
else:
  print("LESS")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
if a>b:
    print('GREATER\n')
elif a<b:
    print('LESS\n')
else:
    print('EQUAL\n')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=[int(input())for _ in[0]*2]
print("GREATER"if a>b else"ELQEUEAEL"[a<b::2])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

ans = "EQUAL"
for a,b in zip(A,B):
    if a > b:
        ans = "GREATER"
        break
    elif a < b:
        ans = "LESS"
        break
    else:
        pass
print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
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)):
        # print('i={} , A[i]={} , B[i]={}'.format(i, A[i], B[i]))
        if int(A[i]) > int(B[i]):
            print('GREATER')
            exit()
        elif int(A[i]) < int(B[i]):
            print('LESS')
            exit()
print('EQUAL')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
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)):
        # print('i={} , A[i]={} , B[i]={}'.format(i, A[i], B[i]))
        if int(A[i]) > int(B[i]):
            print('GREATER')
            exit()
        elif int(A[i]) < int(B[i]):
            print('LESS')
            exit()

Submission status: Wrong Answer

Solution code:
# coding: utf-8
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)):
        # print('i={} , A[i]={} , B[i]={}'.format(i, A[i], B[i]))
        if int(A[i]) == int(B[i]):
            pass
        elif int(A[i]) > int(B[i]):
            print('GREATER')
            exit()
        else:
            print('LESS')
            exit()

Submission status: Wrong Answer

Solution code:
# coding: utf-8
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]:
            pass
        elif A[i] > B[i]:
            print('GREATER')
            exit()
        else:
            print('LESS')
            exit()

Submission status: Wrong Answer

Solution code:
def larger(a, b):
	if a > b: return a
	else: return b

A = long(raw_input())
B = long(raw_input())
print larger(A, B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
if len(a)-1<len(b):
	print("LESS")
elif len(a)-1>len(b):
	print("GREATER")
else:
	x = 0
	for i in range(len(b)):
		if int(a[i])<int(b[i]):
			print("LESS")
			x = 1
			break
		elif int(a[i])>int(b[i]):
			print("GREATER")
			x = 1
			break
	if x == 0: print("EQUAL")

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
if(eval(a) > eval(b)):
    print("GREAT")
elif(eval(a) < eval(b)):
    print("LESS")
else:
    print("EQUAL")

Submission status: Wrong Answer

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

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

else:
	print('LESS')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
if(a > b):
    print("GRATER")
elif(a < b):
    print("LESS")
elif(a == b):
    print("EQUAL")

Submission status: Wrong Answer

Solution code:
gr = "GREATER"
less = "LESS"
eq = "EQUAL"

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

if A > B:
  print(gr)
elif A == B:
  print(less)
else:
  print(eq)

Submission status: Wrong Answer

Solution code:
A=int(input())
B=int(input())
if A>B:
 print ('greater')
elif A<B:
 print ('less')
else:
 print ('equal')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 文字列の入力
A =  raw_input()
B = raw_input()
if A > B:
    print "GREATER"
elif A == B:
    print "EQUAL"
else:
    print "LESS"

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
MOD=1000000007

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

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
ret = ""
if len(a) > len(b):
    ret = "GREATER"
elif len(a) < len(b):
    ret = "LESS"
else:
    for (i, c) in enumerate(a):
        if(c > b[i]):
            ret = "GREATER"
            break
        elif len(a) < len(b):
            ret = "LESS"
            break
        else:
            pass
if ret == "":
    print("EQUAL")
else:
    print(ret)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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
print "EQUAL"

Submission status: Wrong Answer

Solution code:
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:
		if a[p]<b[p]:
			print "LESS"
			flag=False
		elif a[p]>b[p]:
			print "GREATER"
			flag=False
		else:
			pass
print "EQUAL"

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

A = input()
B = input()

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

print(ans)

Submission status: Wrong Answer

Solution code:
A = raw_input()
B = raw_input()

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

Submission status: Wrong Answer

Solution code:
a = raw_input()
b = raw_input()
if a > b:
	print "GREATER"
elif a < b:
	print "LESS"
else:
	print "EQUAL"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n1 = input()
n2 = input()
if n1 < n2:
    print("LESS")
elif n1 > n2:
    print('GREATER')
else:
    print('EQUAL')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
print(a > b and "GREATER" or (a == b and "EQUAL" or "LESS"))

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
a > b and "GREATER" or (a == b and "EQUAL" or "LESS")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# problem B

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

    if len(A) > len(B):
        s = 'GREATER'
    elif len(A) < len(B):
        s = 'LESS'
    else:
        s = comp_str(A, B)

    print(s)


# A > B かどうか
def comp_str(A, B):
    # どちらかが空
    if not(A) and not(B):
        return 'EQUAL'

    elif A[0] == B[0]:
        comp_str(A[1:], B[1:])
    elif A[0] > B[0]:
        return 'GREATER'
    else:
        return 'LESS'

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a = map(int, raw_input())
b = map(int, raw_input())
done = False
if a>b:
    print 'GREATER'
elif a<b:
    print 'LESS'
else:
    print 'EQUAL'

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
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'

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

Submission status: Wrong Answer

Solution code:
# your code goes here
a = raw_input()
b = raw_input()
g = "GREATER"
l = "LESS"
e = "EQUAL"
if a<b:
	print l
elif a>b:
	print g
else:
	print e

Submission status: Wrong Answer

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

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

if __name__ == "__main__":
    main()

Submission status: Time Limit Exceeded

Solution code:
def examB():
    A = S()
    B = S()
    if len(A)>len(B):
        ans = "GREATER"
    elif len(A)<len(B):
        ans = "LESS"
    else:
        i = 0; k = 0; cur = 0
        while i==k:
            if cur==len(A):
                ans = "EQUAL"
                break
            i = int(A[cur])
            k = int(B[cur])
            if i>k:
                ans = "GREATER"
                break
            elif i<k:
                ans = "LESS"
                break
    print(ans)

import sys
import copy
import bisect
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examB()

Submission status: Time Limit Exceeded

Solution code:
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:
		if a[p]<b[p]:
			print "LESS"
			flag=False
		elif a[p]>b[p]:
			print "GREATER"
			flag=False
		else:
			pass

Submission status: Time Limit Exceeded

Solution code:
a=raw_input()
b=raw_input()
if len(a)<len(b):
	print "LESS"
elif len(a)>len(b):
	print "GREATER"
else:
	p=0
	while True:
		if a[p]<b[p]:
			print "LESS"
			break
		elif a[p]>b[p]:
			print "GREATER"
			break
		else:
			pass

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#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)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


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


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-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")

if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
#-*-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")

if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if A > B:
    print("GREATER")

if A < B:
   print("LESS")

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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