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

Submission status: Accepted

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('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:
#ABC059

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

Submission status: Accepted

Solution code:
#059_B
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())
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:
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(A, B):
            if a > b:
                print("GREATER")
                break
            elif a < b:
                print("LESS")
                break


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A = input()
B = input()
tmp = max(len(A),len(B))

A = A.zfill(tmp)
B = B.zfill(tmp)
print('LESS') if A<B else print('GREATER') if A>B 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("EQUAL")
else:
    print("GREATER" 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("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"*(a>b) or "LESS"*(a<b) or "EQUAL")

Submission status: Accepted

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


#----------
A,B = [int(input().strip()) for _ in range(2)]
#----------

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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:
    Flg=True
    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: Accepted

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

Submission status: Accepted

Solution code:
A = 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')
elif A < B:
  print('LESS')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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() for _ in range(2)]
a_len=len(s[0])
b_len=len(s[1])
if s[0]==s[1]:
    print("EQUAL")
elif a_len>b_len:
    print("GREATER")
elif a_len<b_len:
    print("LESS")
else:
    t=sorted(s)
    if s[0]==t[0]:
        print("LESS")
    else:
        print("GREATER")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = 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("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("EQUAL")
else:
    print("GREATER")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if A > B:
    print('GREATER')

elif A < B:
    print('LESS')
elif A == B:
    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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def gle(a , b):
    ans = ""
    if a == b:
        ans = "EQUAL"
    elif a > b:
        ans = "GREATER"
    else:
        ans = "LESS"
    return ans

def main():
    a = int(input())
    b = int(input())
    print(gle(a , b))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, log2
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
al = list(map(int, input()))
bl = list(map(int, input()))
if len(al) > len(bl):
  print('GREATER')
  quit()
elif len(al) < len(bl):
  print('LESS')
  quit()
for a, b in zip(al, bl):
  if a > b:
    print('GREATER')
    quit()
  elif a < b:
    print('LESS')
    quit()
else:
  print('EQUAL')

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

a = INT()
b = INT()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 31, Jan, 2020
"""

import sys

# import itertools
# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

H, W = map(int, read().split())

print('GREATER' if H>W else 'LESS' if H<W else 'EQUAL')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=str(input())
b=str(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 int(a[i]>b[i]):
            print("GREATER")
            break
        elif int(a[i]<b[i]):
            print("LESS")
            break

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=int(input()),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())
print("GREATER" if a>b else "LESS" if a<b else "EQUAL")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.readline()[:-1]

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

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a=INT()
    b=INT()
    A=str(a)
    B=str(b)
    flg=2
    if len(A)>len(B):
        flg=0
    elif len(A)<len(B):
        flg=1
    else:
        for i in range(len(A)):
            if int(A[i])>int(B[i]):
                flg=0
                break
            elif int(A[i])<int(B[i]):
                flg=1
                break
            else:
                pass
        
    if flg==0:
        print('GREATER')
    elif flg==1:
        print('LESS')
    else:
        print('EQUAL')
if __name__ == '__main__':
    do()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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




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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = (int(input()) for _ in range(2))

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

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 058 - B
# -*- encoding: UTF-8 -*-
a = int(input())
b = int(input())

result = "EQUAL"

if a > b :
  result = "GREATER"
elif a < b :
  result = "LESS"

print(result)

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 _ in range(2))
print("GREATER" if a>b else "EQUAL" if b==a else "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:
import sys
input = sys.stdin.readline
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

import numpy as np
import math

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 numpy as np
import math

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 numpy as np
import math

a=input()
b=input()

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

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:
import sys
input = sys.stdin.readline
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())

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

Submission status: Accepted

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

if len(A)<len(B):
    print("LESS")
elif len(A)>len(B):
    print("GREATER")
else:
    cnt=0
    for i in range(len(A)):
        if A[i]>B[i]:
            print("GREATER")
            break
        elif A[i]<B[i]:
            print("LESS")
            break
        else:
            cnt+=1
    if cnt==len(A):
        print("EQUAL")

Submission status: Accepted

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

Submission status: Accepted

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

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:

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=input()
B=input()
flag="EQUAL"

if len(A)!=len(B):
    if(len(A)>len(B)):
        print("GREATER")
    else:
        print("LESS")
else:
    for i in range(len(A)):
        if A[i] > B[i]:
            flag="GREATER"
            break
            
        elif A[i] < B[i]:
            flag="LESS"
            break
    print(flag)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split())) # applies to numbers only
rs = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
 
import math
import itertools
import sys
import copy
 
# 入力
#N, M = map(int, input().split())
#N = int(input())
#S = str(input())
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")


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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:
import math

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

Submission status: Accepted

Solution code:
a=input()
b=input()
x=max(len(a),len(b))
a=format(a).zfill(x)
b=format(b).zfill(x)
if a>b:
  print("GREATER")
elif a<b:
  print("LESS")
else:
  print("EQUAL")

Submission status: Accepted

Solution code:
import sys

a, b = sys.stdin.read().split()

def main():
    la = len(a)
    lb = len(b)
    if la > lb:
        return 'GREATER'
    elif la < lb:
        return 'LESS'
    else:
        for i in range(la):
            if a[i] > b[i]:
                return 'GREATER'
            elif a[i] < b[i]:
                return 'LESS'
        return 'EQUAL'
                
if __name__ == '__main__':
    ans = main()
    print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf')
ans = 0 ;count = 0 ;pro = 1

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

Submission status: Accepted

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

if len(a) != len(b):
    print('GREATER' if len(a) > len(b) else 'LESS' if len(a) < len(b) else 'EQUAL')
else:
    flg  = True
    for k,v in zip(a,b):
        if k > v:
            flg = False
            print('GREATER')
            break
        elif k < v:
            flg = False
            print('LESS')
            break
        else:
            pass
        
    if flg:
        print('EQUAL')

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

Submission status: Accepted

Solution code:
import sys

A = int(sys.stdin.readline().rstrip())
B = int(sys.stdin.readline().rstrip())

answer = "EQUAL"

if A > B:
	answer = "GREATER"
elif A < B:
	answer = "LESS"

print(answer)

Submission status: Accepted

Solution code:
# 
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a=ni()
b=ni()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
b=input()
if(len(a)>len(b)):
    print('GREATER')
elif(len(b)>len(a)):
    print('LESS')
else:
    fla,flb=0,0
    for i in range(len(a)):
        if(int(a[i])>int(b[i])):
            fla=1
            break
        if(int(b[i])>int(a[i])):
            flb=1
            break
    if(fla==0 and flb==0):
        print('EQUAL')
    elif(fla==1):
        print('GREATER')
    else:
        print('LESS')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
A = math.log10(int(input()))
B = math.log10(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')