

import numpy as np

import math



a=int(eval(input()))

b=int(eval(input()))



if(a<b):

    print("LESS")

elif(a==b):

    print("EQUAL")

else:

    print("GREATER")

a = int(eval(input()))

b = int(eval(input()))



if a<b:

  print("LESS")

elif a>b:

  print("GREATER")

else:

  print("EQUAL")

import numpy as np
import math

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

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

-import numpy as np -import math - -elif a == b: +elif a > b: +    print("GREATER") +else: -else: -    print("GREATER")