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

Submission status: Accepted

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; loop = len(A)
        while i==k:
            if cur==loop:
                ans = "EQUAL"
                break
            i = int(A[cur])
            k = int(B[cur])
            if i>k:
                ans = "GREATER"
                break
            elif i<k:
                ans = "LESS"
                break
            cur +=1
    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: 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")
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:
# ABC 059: B – Comparison
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
from functools import reduce
import copy
import math
from pprint import pprint
import collections
import bisect


sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def int_inputs(num_of_input):
    ins = [int(input()) for i in range(num_of_input)]
    return ins


def solve(inputs):
    A = inputs[0]
    B = inputs[1]
    if A == B:
        return 'EQUAL'
    if A > B:
        return 'GREATER'
    return 'LESS'


def string_to_int(string):
    return list(map(int, string.split()))


if __name__ == "__main__":
    ret = solve(int_inputs(2))
    print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

a = inp()
b = inp()
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:
def main(a, b):
    if a > b:
        print('GREATER')
    elif a < b:
        print('LESS')
    else:
        print('EQUAL')


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

    main(a, b)

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

Submission status: Accepted

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

ans = "EQUAL"
if len(a) > len(b):
    ans = "GREATER"
elif len(a) < len(b):
    ans = "LESS"
else:
    for i in range(len(a)):
        if a[i] != b[i]:
            if a[i] > b[i]:
                ans = 'GREATER'
                break
            else:
                ans = 'LESS'
                break

print(ans)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input()
B = input()
if A == B:
    print('EQUAL')
    exit()
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

Submission status: Accepted

Solution code:
# coding: utf-8
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('GREATER')
else:
    print('LESS')

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A = input()
B = input()
ans = ''
if len(A) < len(B):
  ans = 'LESS'
elif len(A) > len(B):
  ans = 'GREATER'
elif len(A) == len(B):
  for i in range(len(A)):
    if int(A[i]) > int(B[i]):
      ans = 'GREATER'
      break;
    elif int(B[i]) > int(A[i]):
      ans = 'LESS'
      break;
    if i == len(A)-1:
      if int(B[i]) == int(A[i]):
        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=input()
b=input()
if len(a)>len(b):
    print('GREATER')
elif len(a)<len(b):
    print('LESS')
else:
    n=len(a)
    for i in range(n):
        if a[i]<b[i]:
            print('LESS')
            exit()
        if a[i]>b[i]:
            print('GREATER')
            exit()
    print('EQUAL')

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

Submission status: Accepted

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("EQUAL")
  else:
    for i, j in zip(a, b):
      if i > j:
        print("GREATER")
        break
      elif j > i:
        print("LESS")
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:



def main():

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

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

max_len = 105

if len(a) < max_len:
    a = '0' * (max_len - len(a)) + a

if len(b) < max_len:
    b = '0' * (max_len - len(b)) + b

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

print(ans)

Submission status: Accepted

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

import sys
if len(A)>len(B):
    print('GREATER')
    sys.exit()
elif len(A)<len(B):
    print('LESS')
    sys.exit()
else:
    for a,b in zip(A,B):
        if int(a)>int(b):
            print('GREATER')
            sys.exit()
        elif int(a)<int(b):
            print('LESS')
            sys.exit()
print('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("EQUAL")
else:
  print("GREATER" if a>b else "LESS")

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 math
a=math.log10(int(input()))
b=math.log10(int(input()))
if a>b:
    print('GREATER')
elif a==b:
    print('EQUAL')
else:
    print('LESS')

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    a = int(input().rstrip('\n'))
    b = int(input().rstrip('\n'))
    if a > b:
        print("GREATER")
    elif a < b:
        print("LESS")
    else:
        print("EQUAL")


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

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

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

# output
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

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

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
a,b=map(int,open(0).read().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B= [int(input()) for i in range(2)]
print('EQUAL' if A == B else 'GREATER' if A > B else 'LESS')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a = input()
b = input()
la = len(a)
lb = len(b)

def B():
    if la > lb:
        return "GREATER"
    elif la < lb:
        return "LESS"
    else:
        for i in range(la):
            ai = int(a[i])
            bi = int(b[i])
            if ai > bi:
                return "GREATER"
            elif ai < bi:
                return "LESS"
        return "EQUAL"

print(B())

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

# 多分TLE
if a == b:
    print("EQUAL")
elif a < b:
    print("LESS")
elif a > b:
    print("GREATER")

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:
import sys
import collections
import copy
import math
def input(): return sys.stdin.readline().strip()
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('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("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 = input()
B = input()
if len(A)>len(B):
    print("GREATER")
elif len(A)<len(B):
    print("LESS")
else:
    for i in range(len(A)):
        if A[i]>B[i]:
            print("GREATER")
            break
        elif A[i]< B[i]:
            print("LESS")
            break
        if i == len(A)-1:
            print("EQUAL")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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 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,B=map(int,open(0));print("GELRQEEUSAASTL E  R"[(A<B)+(A<=B)::3])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,open(0));print(("GREATER","EQUAL","LESS")[(a<=b)+(a<b)])

Submission status: Accepted

Solution code:
a = input()
b = input()
A = "GREATER"
B = "LESS"
AB = "EQUAL"

if len(a)>len(b):
  print(A)
elif len(a)<len(b):
  print(B)
elif a == b:
  print(AB)
else:
  list=[a,b]
  list.sort()
  if list[1] == a:
    print(A)
  else:
    print(B)

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

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

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

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

Submission status: Accepted

Solution code:
#インポート
import sys

#入力用
def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def ISI(): return map(int, sys.stdin.readline().rstrip().split())
def II(): return int(sys.stdin.readline().rstrip())
def ISS(): return sys.stdin.readline().rstrip().split()
def IS(): return sys.stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
import sys
import copy
import  math
from _bisect import *
from collections import *
from operator import itemgetter
from math import factorial
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

Submission status: Accepted

Solution code:
A, B = [int(input()) for _ in range(2)]

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

Submission status: Accepted

Solution code:
# ABC059b
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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 _ in range(2)]
print("GREATER" if a > b else "LESS" if a < b else "EQUAL")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- 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")
    else:
        print("EQUAL")

main()

Submission status: Accepted

Solution code:
a,b=map(int, open(0))
print('GREATER' if(a>b) else 'LESS' if(b>a) else 'EQUAL')

Submission status: Accepted

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

a = len(A)
b = len(B)

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

for i in range(a):
    c = int(A[i])
    d = int(B[i])
    if c > d:
        print ('GREATER')
        exit()
    elif c < d:
        print ('LESS')
        exit()

print ('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:
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())
print(['GREATER','EQUAL','LESS',][2*(a<b)+(a==b)])

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

    A = input()
    B = input()
    if len(A) > len(B):
        return "GREATER"
    elif len(A) < len(B):
        return "LESS"
    else:
        for i in range(len(A)):
            if int(A[i]) > int(B[i]):
                return "GREATER"
            elif int(A[i]) < int(B[i]):
                return "LESS"
        return "EQUAL"

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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 = 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
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop
# https://atcoder.jp/contests/abc059/tasks/abc059_b

def main():
    a = int(input())
    b = int(input())
    if a > b:
        print('GREATER')
        return
    if a < b:
        print('LESS')
        return

    print('EQUAL')


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
# B - Comparison
import math
A = int(input())
B = int(input())

A = math.log(A)
B = math.log(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("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:
# ABC 59 B

def resolve():
    A = int(input())
    B = int(input())

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


if __name__ == "__main__":
    resolve()

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 = input()
b = input()
if len(a) != len(b):
  if len(a) > len(b):
    print("GREATER")
    quit()
  else:
    print("LESS")
    quit()
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()
print("EQUAL")

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

Submission status: Accepted

Solution code:
A = int(input().strip())
B = int(input().strip())
if 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 B > A:
    print('LESS')
else:
    print('EQUAL')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,open(0))
if a > b:
  print('GREATER')
elif a == b:
  print('EQUAL')
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=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:
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('EQUAL')
else:
    print('LESS')

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


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


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # 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())
print(["LESS","GREATER","EQUAL"][(A>=B)+(A==B)])

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