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

Solution code:
#__author__ = "tatuo"
#__date__ = "$Mar 3, 2018 12:34:20 PM$"

import math
import re
import sys


def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result




arr_data = getinputdata()



a = int(arr_data[0][0])
b = int(arr_data[1][0])

if a==b:
    
    print("EQUAL")

elif a>b:
    
    print("GREATER")
    
else:

    print("LESS")

#s3 = arr_data[0][2][0]
#
#
#print(s1.upper() + s2.upper() + s3.upper())

Submission status: Accepted

Solution code:
a = int(input()) / (10 ** 10)
b = int(input()) / (10 ** 10)
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("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 b > a:
  print("LESS")
else:
  print("EQUAL")

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://abc059.contest.atcoder.jp/tasks/abc059_b

"""
import sys
from sys import stdin
input = stdin.readline


def solve(A, B):
    if len(A) > len(B):
        return 'GREATER'
    elif len(A) < len(B):
        return 'LESS'
    elif A == B:
        return 'EQUAL'
    else:
        return 'GREATER' if A > B else 'LESS'


def main(args):
    A = input().strip()
    B = input().strip()
    ans = solve(A, B)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

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()) for _ in range(2)]
if a[0] > a[1]: print('GREATER')
elif a[0] < a[1]: 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=input()
B=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 b<a:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


solve()

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:
val =[]
val.append(int(input()))
val.append(int(input()))

if val[1] == val[0]:
    print("EQUAL")
elif val[0] > val[1]:
    print("GREATER")
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())
if(a > b):
    print("GREATER")
elif(a < b):
    print("LESS")
elif(a == b):
    print("EQUAL")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input()
B = input()
l = max(len(A), len(B))

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

Submission status: Accepted

Solution code:
A, B = [input() for i in range(2)]
if len(A) > len(B):
    print("GREATER")
elif len(A) < len(B):
    print("LESS")
elif A == B:
    print("EQUAL")
else:
    if sorted([A,B])[0] == A :
        print("LESS")
    else:
        print("GREATER")

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:
num=[]
for i in [0]*2:
    num.append(int(input()))
if num[0]>num[1]:
    print("GREATER")
elif num[0]==num[1]:
    print("EQUAL")
else:
    print("LESS")

Submission status: Accepted

Solution code:
n=[int(input()) for x in range(2)]
if n[0]>n[1]:
    print("GREATER")
elif n[0]==n[1]:
    print("EQUAL")
else:
    print("LESS")

Submission status: Accepted

Solution code:
def main():
    a = [int(i) for i in input()]
    b = [int(i) for i in input()]

    if len(a) > len(b):
        print("GREATER")
    elif len(a) < len(b):
        print("LESS")
    else:
        flag = 1
        for m, n in zip(a, b):
            if m > n:
                print("GREATER")
                flag = 0
                break
            elif m < n:
                print("LESS")
                flag = 0
                break
        if flag:
            print("EQUAL")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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: 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(raw_input())
b = int(raw_input())

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    A = input()
    B = input()
    if (len(A) > len(B)):
        print ("GREATER")
    if (len(A) < len(B)):
        print ("LESS")
    if (len(A) == len(B)):
        if (A == B):
            print ("EQUAL")
        for x,y in zip(A, B):
            x = int(x)
            y = int(y)
            if (x > y):
                print ("GREATER")
                break
            if (x < y):
                print ("LESS")
                break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)



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

    A = A.zfill(len(B))
    B = B.zfill(len(A))

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

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

a = input()
b = input()

a = int(a)
b = int(b)
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 ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))

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

Submission status: Accepted

Solution code:
from collections import defaultdict


def main():
    A = input()
    B = input()
    if A == B:
        print("EQUAL")
    elif len(A) == len(B):
        if A > B:
            print("GREATER")
        else:
            print("LESS")
    elif len(A) > len(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:
# Comparison
A = int(input())
B = int(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 文字列の入力
N = int(raw_input())
M = int(raw_input())
if N > M:
    print "GREATER"
elif N == M:
    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 "LESS"
else:
	print "GREATER"

Submission status: Accepted

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

Submission status: Accepted

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

import sys
import subprocess
import json
import time
import math
import re
import sqlite3

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:
import sys

# sys.stdin = open('b1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


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

Submission status: Accepted

Solution code:
import sys

A=raw_input()
B=raw_input()
G="GREATER"
L="LESS"
E="EQUAL"

if len(A) > len(B):
    print G
    sys.exit()
if len(A) < len(B):
    print L
    sys.exit()

for i in range(len(A)):
    a = int(A[i])
    b = int(B[i])
    if a > b:
        print G
        sys.exit()
    if a < b:
        print L
        sys.exit()

print E

Submission status: Accepted

Solution code:
n1 = int(input())
n2 = int(input())

if n1 > n2:
    print("GREATER")
elif n1 < n2:
    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:
n = input()
m = input()
if n==m: print "EQUAL"
elif n>m: 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:
MOD=1000000007

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

if __name__ == "__main__":
    solve()

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 = [float(i) for i in input().split()]
B = [float(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
from sys import stdin
a = int(stdin.readline())
b = int(stdin.readline())
ans = 'GREATER'
if a < b:
 ans = 'LESS'
elif a==b:
 ans = 'EQUAL'
print ans

Submission status: Accepted

Solution code:
if __name__ == '__main__':

    A = input();
    B = input();

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

Submission status: Accepted

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(c < b[i]):
            ret = "LESS"
            break
        else:
            pass
if ret == "":
    print("EQUAL")
else:
    print(ret)

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

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

Submission status: Accepted

Solution code:
s1 = int(raw_input())
s2 = int(raw_input())
if s1>s2:
    print "GREATER"
elif s1 == s2:
    print "EQUAL"
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, b  = input(), 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("EQUAL")
elif A < B:
    print("LESS")
else:
    print("GREATER")

Submission status: Accepted

Solution code:
a = input()
b = input()
n = len(a)
if len(a) == len(b):
    i = 0
    while i<n and a[i] == b[i]:
        i += 1
    if i == n:
        print("EQUAL")
    elif a[i] > b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a) > len(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("LESS")
elif a > b:
    print("GREATER")
else:
    print("EQUAL")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

ans = str()
if a > b:
    ans = "GREATER"
elif a < b:
    ans = "LESS"
else:
    ans = "EQUAL"

print(ans)

Submission status: Accepted

Solution code:
#ABC059B

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
x, y = map(int, sys.stdin.readlines())
if x > y:
    print("GREATER")
elif x == y:
    print("EQUAL")
else:
    print("LESS")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

[A,B] = [int(raw_input()) for i in range(2)]
if A > B:
    print 'GREATER'
elif A < B:
    print 'LESS'
else:
    print 'EQUAL'

Submission status: Accepted

Solution code:
# coding: utf-8

a = input()
b = input()

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()

def main():
    a = I()
    b = I()
    if a > b:
        return 'GREATER'
    if a < b:
        return 'LESS'

    return 'EQUAL'

print(main())

Submission status: Accepted

Solution code:
A=int(raw_input())
B=int(raw_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('GREATER')
elif A==B:
	print('EQUAL')
else:
	print('LESS')

Submission status: Accepted

Solution code:
import math
import sys

x = int(input())
y = int(input())

if x == y:
    print("EQUAL")
elif x > y:
    print("GREATER")
else:
    print("LESS")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
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(raw_input())
b = int(raw_input())
if a > b:
    print 'GREATER'
elif a < b:
    print 'LESS'
else:
    print 'EQUAL'

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = long(raw_input())
b = long(raw_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')
if a<b:
    print('LESS')
if a==b:
    print('EQUAL')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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'

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

Submission status: Accepted

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]:
            print('GREATER')
            exit()
        elif A[i] < B[i]:
            print('LESS')
            exit()
        else:
            continue
    print('EQUAL')

Submission status: Accepted

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
		p+=1
	if flag:
		print "EQUAL"

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

print(ans)

Submission status: Accepted

Solution code:
a=int(input())-int(input());print('GREATER'if a>0else'LESS'if a else'EQUAL')

Submission status: Accepted

Solution code:
#coding:utf-8
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"

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# your code goes here
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

Submission status: Accepted

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

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)

Submission status: Accepted

Solution code:
A = int(raw_input())
B = int(raw_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 ('GREATER')
elif A < B :
    print('LESS')
else:
    print('EQUAL')

Submission status: Accepted

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

a = input()
b = input()
A = int(a)
B = int(b)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
#coding:utf-8

a = []
count = 0
while True:
    n = input()
    a.append(n)
    count+=1
    if count==2:
        break
# print a
if a[0]>a[1]:
    print ("GREATER")
elif a[0]==a[1]:
    print("EQUAL")
else :
    print("LESS")

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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')

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 = 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(raw_input())
b=int(raw_input())

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

Submission status: Accepted

Solution code:
n1 = int(input())
n2 = int(input())

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

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

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