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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

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 'EQUAL' if A == B else 'LESS')

Submission status: Accepted

Solution code:
def main():
    a, b = input(), input()
    len_a, len_b = len(a), len(b)

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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


if __name__ ==  "__main__":
    main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#59B
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
import math

num1 = int(input())
num2 = int(input())
if num1 == num2:
    print("EQUAL")
elif num1 > num2:
    print("GREATER")
elif num1 < num2:
    print("LESS")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

len_a = len(a)
len_b = len(b)

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

if __name__ == "__main__":
    solve()

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = [int(input()) for i in range(2)]

if a>b:
    print("GREATER")

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

Submission status: Accepted

Solution code:
#
# abc059 b
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """36
24"""
        output = """GREATER"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """850
3777"""
        output = """LESS"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """9720246
22516266"""
        output = """LESS"""
        self.assertIO(input, output)

    def test_入力例_4(self):
        input = """123456789012345678901234567890
234567890123456789012345678901"""
        output = """LESS"""
        self.assertIO(input, output)


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

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


if __name__ == "__main__":
    # unittest.main()
    resolve()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=int(input()),int(input());print(['ELQEUSASL'[a<b::2],'GREATER'][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, 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('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:
def actual(A, B):
    if A > B:
        return 'GREATER'

    if A < B:
        return 'LESS'

    return 'EQUAL'


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

print(actual(A, B))

Submission status: Accepted

Solution code:
from sys import stdin
from numpy import argmin

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
#!/usr/bin/env python3
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")
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("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 = int(input())
b = int(input())

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

Submission status: Accepted

Solution code:
import math
A = input()
B = input()
if len(A)>len(B):
  print("GREATER")
elif len(A)<len(B):
  print("LESS")
else:
  while 1:
    if int(A[0])>int(B[0]):
      print("GREATER")
      break
    elif int(A[0])<int(B[0]):
      print("LESS")
      break
    else:
      if len(A)!=1:
        A = A[1:]
        B = B[1:]
      else:
        if int(A)>int(B):
          print("GREATER")
          break
        elif int(A)<int(B):
          print("LESS")
          break
        else:
          print("EQUAL")
          break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = input()
b = input()
la = len(a)
lb = len(b)
if la < lb:
    print("LESS")
elif la > lb:
    print("GREATER")
else:
    cas = list(a)
    cbs = list(b)
    for i in range(la):
        if int(cas[i]) > int(cbs[i]):
            print("GREATER")
            exit()
        elif int(cas[i]) < int(cbs[i]):
            print("LESS")
            exit()
    print("EQUAL")

Submission status: Accepted

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'
		elif int(u) > int(v):
			return 'GREATER'
	return  'EQUAL'

print f(raw_input(), raw_input())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = (input() for T in range(0,2))
if len(A)!=len(B):
    print(['GREATER','LESS'][len(A)<len(B)])
else:
    EqualFlag = True
    for TL in range(0,len(A)):
        if A[TL]!=B[TL]:
            EqualFlag = False
            break
    if EqualFlag:
        print('EQUAL')
    else:
        print(['GREATER','LESS'][A[TL]<B[TL]])

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 resolve():
    import sys
    input = sys.stdin.readline
    # row = [int(x) for x in input().rstrip().split(" ")]
    # n = int(input().rstrip())
    # s = input().rstrip()

    a = int(input().rstrip())
    b = int(input().rstrip())

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

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")
elif a == b:
    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 int(a[i])>int(b[i]):
            print("GREATER")
            break
        elif int(a[i])<int(b[i]):
            print("LESS")
            break
        else:
            pass
    else:
        print("EQUAL")

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

Submission status: Accepted

Solution code:
A=input()
B=input()
a=len(A)
b=len(B)

def less():
  print('LESS')
  exit()
def greater():
  print('GREATER')
  exit()
def equals():
  print('EQUAL')
  exit()

if a<b:
  less()
if a>b:
  greater()
for i in range(a):
  if int(A[i])<int(B[i]):
    less()
  if int(A[i])>int(B[i]):
    greater()
else:
  equals()

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


inint = lambda: int(sys.stdin.readline())
inintm = lambda: map(int, sys.stdin.readline().split())
inintl = lambda: list(inintm())
instrm = lambda: map(str, sys.stdin.readline().split())
instrl = lambda: list(instrm())

a = inint()
b = inint()

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("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:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]

a = input()
b = input()

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

if (al > bl):
    print("GREATER")
elif (al < bl):
    print("LESS")
else:
    for i in range(al):
        if a[i] > b[i]:
            print("GREATER")
            exit()
        elif a[i] < b[i]:
            print("LESS")
            exit()
    print("EQUAL")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#  Pythonのintは無限長なので勝ち

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=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'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:
import sys
def I(): return int(sys.stdin.readline().rstrip())

A,B = I(),I()
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:
# ABC059 B - Comparison

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("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:
A = input()
B = input()
u = len(A)
v = len(B)
if u>v:
	print("GREATER")
elif v>u:
	print("LESS")
else:
	i , j=0 , 0
	while i<u:
		if A[i]>B[i]:
			print("GREATER")
			exit()
		elif A[i]<B[i]:
			print("LESS")
			exit()
		i=i+1
	print("EQUAL")
	exit()

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,b=int(input()),int(input())
l=["EQUAL","GREATER","LESS"]
if a>b:
  ans="GREATER"
elif a<b:
  ans="LESS"
else:
  ans="EQUAL"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=int(input()),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())

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A = readline().strip()
    B = readline().strip()

    if len(A) > len(B):
        ans = 'GREATER'
    elif len(A) < len(B):
        ans = 'LESS'
    else:
        ans = 'EQUAL'
        for a, b in zip(A, B):
            if int(a) > int(b):
                ans = 'GREATER'
                break
            elif int(a) < int(b):
                ans = 'LESS'
                break

    print(ans)

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B = map(int, read().split())

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#50
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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	B
# CreatedDate:  2020-07-17 12:17:41 +0900
# LastModified: 2020-07-17 12:18:40 +0900
#


import os
import sys
# import numpy as np
# import pandas as pd


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
v = input()

a = int(s)
b = int(v)

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