import java.util.Scanner;
import java.math.BigInteger;

public class Main{
    public static void main(String[] agrs){
        Scanner scanner = new Scanner(System.in);
        //创建一个字符串数组,将输入的一行数据根据空格分隔开
        String[] str = scanner.nextLine().split(" ");
        String v1 = "";
        String v2 = "";
        //循环拼装v1和v2
        for(int i = 0; i < Integer.parseInt(str[1]); i++){
            v1 += str[0];
        }
        for(int j = 0; j < Integer.parseInt(str[3]); j++){
            v2 += str[2];
        }
        //将其转成BigInteger类型 调用其方法判断
        BigInteger V1 = new BigInteger(v1);
        BigInteger V2 = new BigInteger(v2);
        //先比较两个字符串的长度,长的数值就大,短的就小
        if(V1.toString().length() > V2.toString().length()){
            System.out.println("Greater");
        }else if(V1.toString().length() < V2.toString().length()){
            System.out.println("Less");
        }else {
            //当长度相等时再进行大数字的相减判断大小
            if(V1.subtract(V2).intValue() > 0){
                System.out.println("Greater");
            }else if(V1.subtract(V2).intValue() == 0){
                System.out.println("Equal");
            }else {
                System.out.println("Less");
            }
        }
    }
}