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

    return a, b

def submit():
    a, b = read_input()

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

if __name__ == '__main__':
    submit()

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

Submission status: Accepted

Solution code:
A, B = eval("int(input())," * 2)
if A > B:
	print("GREATER")
elif A < B:
	print("LESS")
else:
	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('EQUAL')
  else:
    for i in range(len(A)):
      if A[i] > B[i]:
        print('GREATER')
        break
      elif A[i] < B[i]:
        print('LESS')
        break

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:
# vim: set fileencoding=utf-8:


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

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

Submission status: Accepted

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")
            break
        elif int(b[i])<int(a[i]):
            print("GREATER")
            break
        elif int(a[i])==int(b[i]) and i==A-1:
            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:
    for i,j in zip(a,b):
        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=int(input())
b=int(input())
ans='LESS'
if a>b:
    ans='GREATER'
elif a==b:
    ans='EQUAL'
print(ans)

Submission status: Accepted

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a = f()[0]
    b = f()[0]
    if a>b:
        print('GREATER')
    elif a<b:
        print('LESS')
    else:
        print('EQUAL')

solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding utf-8 -*-
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,B=int(input()),int(input())
print("GREATER"if A>B else"LESS"if A<B else"EQUAL")

Submission status: Accepted

Solution code:
a_s = input()
b_s = input()

if len(a_s) > len(b_s):
    print("GREATER")
    exit()
elif len(a_s) < len(b_s):
    print("LESS")
    exit()

for a, b in zip(a_s, b_s):
    if a > b:
        print("GREATER")
        exit()
    elif b > a:
        print("LESS")
        exit()

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:
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
    if i==nl-1:
      print('EQUAL')

Submission status: Accepted

Solution code:
a_s = input()
b_s = input()
if a_s == b_s:
    print('EQUAL')
elif len(a_s) > len(b_s):
    print('GREATER')
elif len(a_s) < len(b_s):
    print('LESS')
else:
    a = list(map(int, list(a_s)))
    b = list(map(int, list(b_s)))
    for ai, bi in zip(a, b):
        if ai > bi:
            print('GREATER')
            break
        elif ai < bi:
            print('LESS')
            break

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:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    # 1e10

    # 初期値用:十分小さい数(-100億)
    # -1e10
    
    # 1文字のみを読み込み
    # 入力:2
    # a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    a = int(input().rstrip())
    b = int(input().rstrip())
    if a > b:
        print('GREATER')
    elif b > a:
        print('LESS')
    else:
        print('EQUAL')
    
if __name__ == '__main__':
    main()

Submission status: Accepted

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("GREATER")
            exit()
        elif a[i]<b[i]:
            print("LESS")
            exit()
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

def main():
    input = sys.stdin.readline
    A = int(input())
    B = int(input())

    if A == B:
        return 'EQUAL'
    elif A > B:
        return 'GREATER'
    else:
        return 'LESS'


if __name__ == '__main__':
    print(main())

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

Submission status: Accepted

Solution code:
import sys
ns = lambda: sys.stdin.readline().rstrip()
ni = lambda: int(ns())
nm = lambda: map(int, sys.stdin.readline().split())
nl = lambda: list(nm())

a = list(ns())
b = list(ns())

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

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:
ab = [int(input()) for i in range(2)]
if (ab[0] > ab[1]):
    print("GREATER")
elif (ab[0] < ab[1]):
    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 = int(input())
b = int(input())

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

Submission status: Accepted

Solution code:
a,b=map(int,open(0));print(['ELQEUSASL'[a<b::2],'GREATER'][a>b])

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import math

A = int(input())
B = int(input())
#A = math.log10(A)
#B = math.log10(B)

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

Submission status: Accepted

Solution code:
import math

A = int(input())
B = int(input())
A = math.log10(A)
B = math.log10(B)

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# input
a = int(input())
b = int(input())
# calc
if a==b:
  print('EQUAL')
elif a>b:
  print('GREATER')
elif a<b:
  print('LESS')

Submission status: Accepted

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

print("GREATER" if a > b else "LESS" if b > a else "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(input()), int(input())
print("GREATER" if A > B else "LESS" if A < B else "EQUAL")

Submission status: Accepted

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

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, b = int(input()), int(input())
if a > b:
    print("GREATER")
else:
    print("ELQEUSASL"[a<b::2])

Submission status: Accepted

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


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

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

Submission status: Accepted

Solution code:
def comparison(A: int, B: int) -> str:
    if A < B:
        return 'LESS'
    if B < A:
        return 'GREATER'
    return 'EQUAL'


if __name__ == "__main__":
    A, B = int(input()), int(input())
    ans = comparison(A, B)
    print(ans)

Submission status: Accepted

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

if int(A) - int(B) == 0:
  	print('EQUAL')
else:
    if len(A) > len(B):
        print('GREATER')
    elif len(A) < len(B):
        print('LESS')
    else:
        i = 0
        while i < len(A):
            if A[i] > B[i]:
                print('GREATER')
                break
            elif A[i] < B[i]:
                print('LESS')
                break
            else:
                i += 0

Submission status: Accepted

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

ans=""
if a>b:
  ans="GREATER"
elif a==b:
  ans="EQUAL"
else:
  ans="LESS"
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, b = int(input()), 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,B=[int(input()) for i in range(2)]
print(["EQUAL","LESS","GREATER"][(A!=B)+(A>B)])

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:
#059 B
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()),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:
    ans = 'GREATER'
elif A == B:
    ans = 'EQUAL'
else:
    ans = 'LESS'

print(ans)

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):
  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:
    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:
  i=0
  f=0
  while len(a)>i:
    if int(a[i])>int(b[i]):
      f=1
      break
    elif int(a[i])<int(b[i]):
      f=2
      break
    i+=1
  if f==0:
    print("EQUAL")
  elif f==1:
    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')
if(a==b):print('EQUAL')
if(a<b):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(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)]
print('GREATER') if A>B else print('LESS') if A<B 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 = int(input())
b = int(input())
ans = "EQUAL"
if(a > b):
  ans = "GREATER"
elif(a < b):
  ans = "LESS"
print(ans)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

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

Submission status: Accepted

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

"""
Comparison
"""

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:
import sys
A = int(input())
B = int(input())
# a = [int(input()) for _ in range(N)]
# S = str(input())
# L = len(S)
# T = str(input())
if(A>B):
    print("GREATER")
    sys.exit()
elif(A==B):
    print("EQUAL")
    sys.exit()
else:
    print("LESS")

Submission status: Accepted

Solution code:
""" AtCoder """

A = input()
B = input()

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

Submission status: Accepted

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

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')
      judge = 1
      break
    elif(A[i] < B[i]):
      print('LESS')
      judge = -1
      break
  if(judge == 0):
    print('EQUAL')

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools
import copy

def j(q):
    if q==1: print("YES")
    else:print("NO")
    exit(0)


def ct(x,y):
    if (x>y):print("GREATER")
    elif (x<y): print("LESS")
    else: print("EQUAL")

def ip():
    return int(input())


n = ip()                              #入力整数1つ
#n,m= (int(i) for i in input().split())      #入力整数横2つ
#a,b,c = (int(i) for i in input().split())    #入力整数横3つ
#n,a,b,c= (int(i) for i in input().split())  #入力整数横4つ
#a = [int(i) for i in input().split()]        #入力整数配列
#a = input()                                  #入力文字列
#a = input().split()                          #入力文字配列
#n = ip()                      #入力セット(整数改行あり)(1/2)
#a=[ip() for i in range(n)]    #入力セット(整数改行あり)(2/2)
#a=[input() for i in range(h)]
#jの変数はしようできないので注意
#全足しにsum変数使用はsum関数使用できないので注意
m = ip()
ct(n,m)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
A = input()
B = input()
flg = 2
if len(A) > len(B):
    flg = 0
elif len(A) < len(B):
    flg = 1
else:
    for i in range(len(A)):
        if int(A[i]) > int(B[i]):
            flg = 0
            break
        elif int(A[i]) < int(B[i]):
            flg = 1
            break
print(['GREATER', 'LESS', 'EQUAL'][flg])

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, b = [int(input()) for _ in range(2)]
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("GREATER" if B < A 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")
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 = 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=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()
    print('EQUAL')

Submission status: Accepted

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

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

Submission status: Accepted

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

num = len(B) if len(A) < len(B) else len(A)

A = A.rjust(num, '0')
B = B.rjust(num, '0')

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import log10
A = log10(int(input()))
B = log10(int(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('GELRQEEUSAASTL E  R'[(a<1)+(a<0)::3])

Submission status: Accepted

Solution code:
a=int(input())-int(input());print('GELRQEEUSAASTL E  R'[(a<=0)+(a<0)::3])

Submission status: Accepted

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

Submission status: Accepted

Solution code:

A = list(input())
B = list(input())

if len(A) > len(B):
    print("GREATER")
elif len(B) > len(A):
    print("LESS")
else:
    for i in range(len(A)):
        if int(A[i]) > int(B[i]):
            print("GREATER")
            quit()
        elif int(A[i]) < int(B[i]):
            print("LESS")
            quit()
        else:
            if i  == len(A) - 1 and int(A[i])==int(B[i]):
                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:
def func():
    pass


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

Submission status: Accepted

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

Submission status: Accepted

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

flag=0

if len(b) < len(a) and flag==0:
  print('GREATER')
  flag=1
if len(b) > len(a) and flag==0:
  print('LESS')
  flag=1

  
if len(a)==len(b):  
  for i in range(len(a)):
    if b[i] < a[i] and flag==0:
      print('GREATER')
      flag=1
    elif b[i] > a[i] and flag==0:
      print('LESS')
      flag=1
    
if flag==0:
  print('EQUAL')

Submission status: Accepted

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

flag=0

if len(a)==1 and len(b)==1:
  if int(b) < int(a):
    print('GREATER')
    flag=1
  elif int(b) > int(a):
    print('LESS')
    flag=1
  else:
    print('EQUAL')
    flag=1
    
if len(a)==1 and len(b) > 1:
    print('LESS')
    flag=1
    
if len(a) > 1 and len(b)==1:
    print('GREATER')
    flag=1

if len(b) < len(a) and flag==0:
  print('GREATER')
  flag=1
if len(b) > len(a) and flag==0:
  print('LESS')
  flag=1

  
if len(a)==len(b):  
  for i in range(len(a)):
    if b[i] < a[i] and flag==0:
      print('GREATER')
      flag=1
    elif b[i] > a[i] and flag==0:
      print('LESS')
      flag=1
    
if flag==0:
  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:
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(input())
b = int(input())

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

Submission status: Accepted

Solution code:
import sys
A = int(input())
B = int(input())
if(A > B):
    print("GREATER")
    sys.exit()
if(A < B):
    print("LESS")
    sys.exit()
else:
    print("EQUAL")

Submission status: Accepted

Solution code:
# ABC 059
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("LESS"if a<b else("GREATER"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('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:
As = input()
Bs = input()

lenA, lenB = len(As), len(Bs)
if lenA > lenB:
    print('GREATER')
elif lenA < lenB:
    print('LESS')
else:
    for A, B in zip(As, Bs):
        A, B = int(A), int(B)
        if A > B:
            print('GREATER')
            break
        elif A < B:
            print('LESS')
            break
    else:
        print('EQUAL')

Submission status: Accepted

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

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

print(Ans)

Submission status: Accepted

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("GREATER")
        exit(0)
    elif int(x) < int(y):
        print("LESS")
        exit(0)
    else:
        pass
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("GREATER")
else:
    print("EQUAL")

Submission status: Accepted

Solution code:
while(True):
    try:
        s, t = [input() for i in range(2)]
        if len(s) > len(t):
            print("GREATER")
        elif len(s) < len(t):
            print("LESS")
        else:
            print("GREATER" if s > t else "LESS" if s < t else "EQUAL")
    except EOFError:
        exit()

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=input()
B=input()
if A==B:
    print("EQUAL")
if len(A)>len(B):
    print("GREATER")
elif len(B)>len(A):
    print("LESS")
else:
    for i in range(len(A)):
        if A[i]>B[i]:
            print("GREATER")
            break
        elif B[i]>A[i]:
            print("LESS")
            break

Submission status: Accepted

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


abc059_b()

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

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