const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here m = await readline(); arr = m.split(' '); let arrs = new Array; for(let i=0; i<4; i++){ arrs.push(parseInt(arr[i])); } var v1wei = getwei(arrs[0],0); var v2wei = getwei(arrs[2],0); var repeat1 = repeat(arr[0],arrs[1]) let num1 = parseInt(repeat1); var repeat2 = repeat(arr[2],arrs[3]) let num2 = parseInt(repeat2); if(v1wei*arrs[1]>v2wei*arrs[3]){ console.log("Greater"); }else if(v2wei*arrs[3]>v1wei*arrs[1]){ console.log('Less'); }else{ if(num1>num2){ console.log("Greater"); }else if(num2>num1){ console.log('Less'); }else{ console.log("Equal"); } } function getwei(n,m){ while(Math.floor(n/10)){ n=n/10; m+=1; } return m+1; } function repeat(n,m){ let str = n; for(let i=0; i<m-1; i++){ str +=n; } return str; } }()