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 = 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("EQUAL")

if len(B) < len(A):
    print("GREATER")
elif len(A) < len(B):
    print("LESS")
else:
    for i in range(0, len(A)):
        if int(B[i]) < int(A[i]):
            print("GREATER")
            break
        elif int(A[i]) < int(B[i]):
            print("LESS")
            break

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:
if __name__ == '__main__':
    a=float(input())
    b=float(input())
    if a==b :
        print('EQUAL')
    elif a<b:
        print('LESS')
    else:
        print('GREATER')

Submission status: Accepted

Solution code:
import sys
import math

INF = 10**9+7

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

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

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

a = ns()
b = ns()


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


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

for i in range(an):
    if(a[i] > b[i]):
        print("GREATER")
        exit()
    elif(b[i] > a[i]):
        print("LESS")
        exit()

print("EQUAL")

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

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

print(ans)

Submission status: Accepted

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

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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

    return 0

if __name__ == '__main__':
    sys.exit(main())

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:
# -*- 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:
# -*- coding:utf-8 -*-
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 = 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

if __name__ == "__main__":
	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:
# -*- coding: utf-8 -*-
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:
#coding:utf-8

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a = i_input()
    b = i_input()

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
if A > B:
  print('GREATER')
if A < B:
  print('LESS')
if A == B:
  print('EQUAL')

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

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

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


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

def main():
    a,b = map(int, input().split())

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


if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
import math
if math.sqrt(a)==math.sqrt(b):
  print("EQUAL")
elif math.sqrt(a)>math.sqrt(b):
  print("GREATER")
  math.sqrt(a)<math.sqrt(b):
  print("LESS")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = input().split()
N = max(len(A), len(B))
A, B = A.zfill(N), B.zfill(N)
if A == B:
  print("EQUAL")
if A > B:
  print("GREATER")
if A < B:
  print("LESS")

Submission status: Runtime Error

Solution code:
A, B = input().split()
N = max(len(A), len(B))
A, B = A.zfill(N), B.zfill(B)
if A == B:
  print("EQUAL")
if A > B:
  print("GREATER")
if A < B:
  print("LESS")

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
if A == B:
  print("EQUAL")
if A > B:
  print("GREATER")
if A < B:
  print("LESS")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = (int(input()) for i in range(2))
print("GREATER" if A>B else "EQOUL" if A=B else "LESS")

Submission status: Runtime Error

Solution code:
A, B = int(input()) for i in range(2)
print("GREATER" if A>B else "EQOUL" if A=B else "LESS")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

a = i()
b = i()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

Submission status: Runtime Error

Solution code:
# n, m, l = map(int, input().split())

# list_n = list(map(int, input().split()))

# n = input()
# list = [input() for i in range(N)

# list = [[i for i in range(N)] for _ in range(M)]

# import sys
# input = sys.stdin.readline

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

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

Submission status: Runtime Error

Solution code:
# n, m, l = map(int, input().split())

# list_n = list(map(int, input().split()))

# n = input()
# list = [input() for i in range(N)

# list = [[i for i in range(N)] for _ in range(M)]

# import sys
# input = sys.stdin.readline

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

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

Submission status: Runtime Error

Solution code:
# n, m, l = map(int, input().split())

# list_n = list(map(int, input().split()))

# n = input()
# list = [input() for i in range(N)

# list = [[i for i in range(N)] for _ in range(M)]

import sys
input = sys.stdin.readline

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

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

Submission status: Runtime Error

Solution code:
# n, m, l = map(int, input().split())

# list_n = list(map(int, input().split()))

# n = input()
# list = [input() for i in range(N)

# list = [[i for i in range(N)] for _ in range(M)]

import sys
input = sys.stdin.readline

Astr = input()
Bstr = input()

if len(Astr) > len(Bstr):
    print("GREATER")
elif len(Astr) < len(Bstr):
    print("LESS")
else:
    ise = True
    for i in range(len(Astr)):
        if int(Astr[i]) > int(Bstr[i]):
            ise = False
            print("GREATER")
            break
        elif int(Astr[i]) < int(Bstr[i]):
            ise = False
            print("LESS")
            break
    if ise:
        print("EQUAL")

Submission status: Runtime Error

Solution code:
# n, m, l = map(int, input().split())

# list_n = list(map(int, input().split()))

# n = input()
# list = [input() for i in range(N)

# list = [[i for i in range(N)] for _ in range(M)]

import sys
input = sys.stdin.readline

Astr = input()
Bstr = input()

if len(Astr) > len(Bstr):
    print("GREATER")
elif len(Astr) < len(Bstr):
    print("LESS")
else:
    for i in range(len(Astr)):
        if int(Astr[i]) > int(Bstr[i]):
            print("GREATER")
            exit()
        elif int(Astr[i]) < int(Bstr[i]):
            print("LESS")
            exit()
    print("EQUAL")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
a, b = input().split()

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

a = [int(a[i]) for i in range(len(a))]
b = [int(b[i]) for i in range(len(b))]

flag = True
if len(a) > len(b):
    print('GREATER')
    flag = False
elif len(b) > len(a):
    print('LESS')
    flag = False
else:
    for i in range(len(a)):
        if a[i] > b[i]:
            print('GREATER')
            flag = False
            break
        elif b[i] > a[i]:
            print('LESS')
            flag = False
            break
if flag:
    print('EQUAL')

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

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

flag = True
if len(a) > len(b):
    print('GREATER')
    flag = False
elif len(b) > len(a):
    print('LESS')
    flag = False
else:
    for i in range(len(a)):
        if a[i] > b[i]:
            print('GREATER')
            flag = False
            break
        elif b[i] > a[i]:
            print('LESS')
            flag = False
            break
if flag:
    print('EQUAL')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():

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

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

main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def resolve():
    a, b = map(int, input().split())

    ans = str()

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

    print(ans)
resolve()

Submission status: Runtime Error

Solution code:
A = input()
B = input()
if A.length() > B.length():
  print("GREATER")
elif A.length() < B.length():
  print("LESS")
else:
  for a,b in zip(A,B):
    if a > b:
      print("GREATER")
    elif a < b:
      print("LESS")
print("EQUAL")

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
frag="EQUAL"
if a>b:
  frag="GREATER"
elif a[i]<b[i]:
  frag="LESS"
      
print(frag)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
import math
A, B = map(int, input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = input().split()
A = list(A)
B = list(B)
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 B[i] > A[i]:
      print("LESS")
      break
if A == B:
  print("EQUAL")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
print("GREATER" if A<B else "EQUAL" if A==B else "LESS")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a>b:
  print("GREATER")

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

else:
  print("LESS")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
from collections import Counter
readline = sys.stdin.buffer.readline
MOD = 10**9+7

def main():
    A, B = map(int, readline().split())
    if A>B:
        print('GREATER')
    elif A<B:
        print('LESS')
    else:
        print('EQUAL')




if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().rstrip().split(' '))
if(a>b):print("GREATER")
elif(a<b):print("LESS")
else:print("EQUAL")

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
A, B = map(int, input().split())
if A < B: print("LESS")
elif A == B: print("EQUAL")
else: print("GREATER")

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
if A < B: print("LESS")
elif A == B: print("EQUAL")
else: print("GREATER")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = open(0).read()
def t(c): return eval(s.replace("\n",c))
print([["LESS","GREATER"][t(">")], "EQUAL"][t("==")])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
#include <bits/stdc++.h>

using namespace std;

int main() {
  string s, t; cin >> s >> t;
  int n = s.length();
  int m = s.length();
  if(n > m) {
    printf("GREATER");
  }
  else if(n < m) {
    printf("LESS");
  }
  else {
    if(s > t) {
      printf("GREATER");
    }
    else if(s < t) {
      printf("LESS");
    }
    else {
      printf("EQUAL");
    }
  }
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

A_s =str(A)
B_s = str(B)

if len(A_s) > len(B_s):
    print("GREATER")
elif len(A_s) < len(B_s):
    print("LESS")
else:
    for i in range(len(A_s)):
        if A_s[i] > B_s[i]:
            print("GREATER")
            break
        elif A_s[i] < B_s[i]:
            print("LESS")
            break
        elif (A[i] == B[i]) & (i == len(A_s)-1):
            print("EQUAL")
            break

Submission status: Runtime Error

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

A_s =str(A)
B_s = str(B)

if len(A_s) > len(B_s):
    print("GREATER")
elif len(A_s) < len(B_s):
    print("LESS")
else:
    for i in range(len(A_s)):
        if A[i] > B[i]:
            print("GREATER")
            break
        elif A[i] < B[i]:
            print("LESS")
            break
        elif (A[i] == B[i]) & (i == len(A_s)-1):
            print("EQUAL")
            break

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#ABC059.B
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
print('GREATER' if (A-B)>0 else 'EQUAL' if A==B else 'LESS')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
a=input().strip()
b=input().strip()

if a==b:
  print("EQUAL")
elif len(a)>len(b):
  print("GREATER")
elif len(b)>len(a):
  print("LESS")
else: #same len
  for i in range(len(a)):
    if int(a[i])>int(b[i])
      print("GREATER")
      sys.exit()
    elif int(a[i])<int(b[i])
      print("LESS")
      sys.exit()

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
a=int(input())
b=int(input())
la=len(str(a))
lb=len(str(b))

if la>lb:
    print('GREATER')
elif la<lb:
    print('LESS')
else:
    for i in range(la):
        if int(str(a)[i])>int(str(b)[i]):
            print('GREATER')
            Flg=False
            break
        elif int(str(a)[i])<int(str(b)[i]):
            print('LESS')
            Flg=False
            break
    if Flg:
        print('EQUAL')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
a, b = map(int(input().split())
           
if a > b:
	print("GREATER")
elif a < b: 
    print("LESS")
elif a == b:
    print("EQUAL")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
if a >b:
  print("GREATER")
elif a <b:
  print("LESS")
elif a==b:
  print("EQUAL")

Submission status: Runtime Error

Solution code:
a,b =map(int,input().split())
print("GREATER" if a>b else "LESS" if a<b else "equal")

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
print("EQUAL" if A==B else "GREATER" if A>B else "LESS")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;

using ll=long long; 

void solve(){
	string a,b;
	cin>>a>>b;
	if(a.size()!=b.size()){
		if(a.size()>b.size()){
			cout<<"GREATER"<<endl;
		}
		else if (a.size()<b.size()){
			cout<<"LESS"<<endl;
		}
		else{
			cout<<"EQUAL"<<endl;
		}
	}
	else{
		for(int i=0; i<a.size(); i++){
			if(a[i]>b[i]){
				cout<<"GREATER"<<endl;
				return;
			}
			else if(a[i]<b[i]){
				cout<<"LESS"<<endl;
				return;
			}
		}
		cout<<"EQUAL"<<endl;
		return;
	}

}

signed main(){
	//while(1)
	solve();
}

Submission status: Runtime Error

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