Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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

Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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

Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

import sys
input = sys.stdin.readline

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

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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

Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

import sys
input = sys.stdin.readline

Astr = input()
Bstr = input()

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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

Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

import sys
input = sys.stdin.readline

Astr = input()
Bstr = input()

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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

Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

import sys
input = sys.stdin.readline

Astr = input()
Bstr = input()

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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

Buggy python submission (verdict: Runtime Error):
# n, m, l = map(int, input().split())

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

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

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

import sys
input = sys.stdin.readline

Astr = input()
Bstr = input()

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


Fixed submission:
# n, m, l = map(int, input().split())

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

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

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

# import sys
# input = sys.stdin.readline

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

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