Problem:


Score : 200 points

Problem Statement

You are given two positive integers A and B. Compare the magnitudes of these numbers.

Constraints

1 ≤ A, B ≤ 10^{100}

Neither A nor B begins with a 0.

Input

Input is given from Standard Input in the following format:

A
B

Output

Print GREATER if A>B, LESS if A<B and EQUAL if A=B.

Sample Input 1

36
24

Sample Output 1

GREATER

Since 36>24, print GREATER.

Sample Input 2

850
3777

Sample Output 2

LESS

Sample Input 3

9720246
22516266

Sample Output 3

LESS

Sample Input 4

123456789012345678901234567890
234567890123456789012345678901

Sample Output 4

LESS



Sample input:
36
24


Sample output:
GREATER

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

def main():
    a = int(input())
    b = int(input())
    mod = 10**9+7
    a%=mod
    b%=mod

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

def main():
    a = int(input())
    b = int(input())
    mod = 10**9+7

    a %= mod
    b %= mod

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

def main():
    a = int(input())
    b = int(input())
    mod = 10**9+7

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = input(), input()
if A > B:
    print('greater'.upper())
if A < B:
    print('less'.upper())
if A == B:
    print('equal'.upper())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=str(input())
b=str(input())
x=len(a)
y=len(b)
if x>y:
  print("GREATER")
  exit()
elif x<y:
  print("LESS")
  exit()
else:
  for i in range(x):
    m=int(a[i])
    n=int(b[i])
    if m>n:
      print("GREATER")
      exit()
    elif n<m:
      print("LESS")
      exit()
    else:
      continue

print("EQUAL")

Submission status: Wrong Answer

Solution code:
a=str(input())
b=str(input())
x=len(a)
y=len(b)
if x>y:
  print("GREATER")
elif x<y:
  print("LESS")
else:
  for i in range(x):
    m=int(a[i])
    n=int(b[i])
    if m>n:
      print("GREATER")
      break
    elif n<m:
      print("LESS")
      break
    else:
      continue

Submission status: Wrong Answer

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

if a>b:
    print("GRATER")

if a<b:
    print("LESS")

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

Submission status: Wrong Answer

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

if A>B:
  print("GREATER")
elif A<B:
  print("less")
elif A==B:
  print("EQUAL")

Submission status: Wrong Answer

Solution code:
def f(a, b):
	if len(a) != len(b):
		return 'GREATER' if len(a) > len(b) else 'LESS'
	for u,v in zip(a,b):
		if int(u) < int(v):
			return 'LESS'
	return  'EQUAL'

print f(raw_input(), raw_input())

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if not finished:
  print("EQUAL")

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
k=2
if a>b:k=0
else:k=1
print(('GREATER','LESS','EQUAL')[k])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
ali=list(str(a))
bli=list(str(b))
ans=100
if len(ali)!=len(bli):
  if len(ali)>len(bli):
    ans=1
  else:
    ans=-1
else:
  for (i,j) in zip(ali,bli):
    if i==j:
      continue
    else:
      if int(i)>int(j):
        ans=1
      else:
        ans=-1
    if ans==100:
      ans=0
      
if ans==1:
  print("GREATER")
elif ans==0:
  print("EQUAL")
elif ans==-1:
  print("LESS")
else:
  print("ERROR")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import exit
A = input()
B = input()
if len(A) > len(B):
  print("GREATER")
elif len(A) < len(B):
  print("LESS")
else:
  for a,b in zip(A,B):
    if a > b:
      print("GREATER")
      exit()
    elif a < b:
      print("LESS")
      exit()
print("EQUAL")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

al = len(a)
bl = len(b)

if al>bl:
    print('GREATER')
elif al<bl:
    print('LESS')
else:
    i = 0
    check = 0
    for i in range(al):
        if a[i] == b[i]:
            pass
        else:
            check += int(a[i]) - int(b[i])
            break

    if check > 0:
        print('GRAETER')
    elif check < 0:
        print('LESS')
    else:
        print('EQUAL')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if A>B:
  print("GRATER")
if A<B:
  print("LESS")
if A==B:
  print("EQUAL")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# abc059_b.py
A = int(input())
B = int(input())
if A>B:
    print('GRETER')
elif A==B:
    print('EQUAL')
else:
    print('LESS')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

a = input()
b = input()

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


print("EQUAL")

Submission status: Wrong Answer

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('GREATER')
            break
        elif a[i]<b[i]:
            print('LESS')
            break
        else:
            continue

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = len(a)
d = len(b)
if c>d:
    print('GREATER')
elif c<d:
    print('LESS')
else:
    for x, y in zip(a,b):
        if x<y:
            print('LESS')
            exit()
        if x>y:
            print('GREATER')
            exit()
    print('EVEN')

Submission status: Wrong Answer

Solution code:
print("EQUAL")

Submission status: Wrong Answer

Solution code:
def main():
    A = list(input())
    B = list(input())
    if A == B:
        print("EQUAL")
    elif len(A) > len(B):
        print("GREATER")
    elif len(A) < len(B):
        print("LESS")
    else:
        for a, b in zip(reversed(A), reversed(B)):
            if a > b:
                print("GREATER")
                break
            elif a < b:
                print("LESS")
                break


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline().strip
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Wrong Answer

Solution code:
import numpy as np
import math
a = int(input())
b = int(input())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if len(a) > len(b):
  print("GRATER")
  exit(0)
elif len(a) < len(b):
  print("LESS")
  exit(0)

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

print("EQUAL")

Submission status: Wrong Answer

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

if len(a) > len(b):
  print("GRATER")
  exit(0)
elif len(a) < len(b):
  print("LESS")
  exit(0)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:


import numpy as np
import math

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
123456789012345678901234567890
234567890123456789012345678901

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = int(stdin.readline().rstrip())
b = int(stdin.readline().rstrip())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num1 = input()
num2 = input()

if num1 > num2:
	print("GREATER")
	pass
elif num1 < num2:
	print("LESS")
	pass
else:
	print("EQUAL")
	pass

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=input()
B=input()
a=len(A)
b=len(B)
if a>b:
  print("GRATER")
elif b>a:
  print("LESS")
else:
  i=0
  while i<a:
    if A[i]>B[i]:
      print("GRATER")
      break
    elif B[i]>A[i]:
      print("LESS")
      break
    else:
      i=i+1
      if i==a:
        print("EQUAL")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 = "GRATER"
elif a == b:
    ans = "EQUAL"
else:
    ans = "LESS"

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A  = input()
B = input()
if len(A) > len(B):
    print("GREATER")
elif len(A) < len(B):
    print("LESS")
else:
    decided = True
    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: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(A)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
if len(a) != len(b):
  if len(a) > len(b):
    print("GREATER")
  else:
    print("LESS")
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: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=int(input())
print(["GREATER","LESS","EQUAL"][(a>b)+(a==b)])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if len(A)>len(B):
    print("GREATER")

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

Submission status: Wrong Answer

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

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


if __name__ == "__main__":

    main()

Submission status: Wrong Answer

Solution code:
def suma(a,b):
  return a+b
def resta(a,b):
  return a-b
def mult(a,b):
  return a*b
  

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = 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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

def solve(a,b,n,i):
    if n == i:
        return(print("EQUAL"))
    if a[i] >b[i]:
        print("GREATER")
    elif b[i]>a[i]:
        print("LESS")
    else:
        solve(a,b,n,i+1)

if len(a)>len(b):
    print("GREATER")
elif len(b)>len(b):
    print("LESS")
else:
    solve(a,b,len(a),0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Solution code:
a = int(input())
b = int(input())
print(['LESS', 'GEATER', 'EQUAL'][(a>b)-(a==b)])

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
print(['LESS', 'GEATER', 'EQUAL'][(a>b)-(a==b)])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# vim: set fileencoding=utf-8:


def main():
    O = input()
    E = input()

    ans = ''
    for o, e in zip(O, E):
        ans += o + e

    if len(O) > len(E):
        ans += O[-1]
    elif len(O) < len(E):
        ans += E[-1]
    elif len(O) == len(E):
        pass

    print(ans)


if __name__ == "__main__":
    main()