You are given two positive integers A and B. Compare the magnitudes of these numbers.
A = int(input())
B = int(input())

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

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

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