Problem:


Score : 200 points

Problem Statement

You are given two positive integers A and B. Compare the magnitudes of these numbers.

Constraints

1 ≤ A, B ≤ 10^{100}

Neither A nor B begins with a 0.

Input

Input is given from Standard Input in the following format:

A
B

Output

Print GREATER if A>B, LESS if A<B and EQUAL if A=B.

Sample Input 1

36
24

Sample Output 1

GREATER

Since 36>24, print GREATER.

Sample Input 2

850
3777

Sample Output 2

LESS

Sample Input 3

9720246
22516266

Sample Output 3

LESS

Sample Input 4

123456789012345678901234567890
234567890123456789012345678901

Sample Output 4

LESS



Sample input:
36
24


Sample output:
GREATER

Submission status: Runtime Error

Solution code:
fn main() {
    let a = read::<String>().chars().collect::<Vec<_>>();
    let b = read::<String>().chars().collect::<Vec<_>>();
    if a.len() > b.len() {
        println!("GREATER");
        return;
    } else if a.len() < b.len() {
        println!("LESS");
        return;
    } else {
        for i in 0..a.len() {
            if a[i] > b[i] {
                println!("GREATER");
                return;
            } else if a[i] < b[i] {
                println!("LESS");
                return;
            } else {
                continue;
            }
        }
    }
    println!("EQUAL");
}

#[allow(dead_code)]
fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}
#[allow(dead_code)]
fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    read::<String>()
        .split_whitespace()
        .map(|e| e.parse().ok().unwrap())
        .collect()
}
#[allow(dead_code)]
fn read_vec2<T: std::str::FromStr>(n: u32) -> Vec<Vec<T>> {
    (0..n).map(|_| read_vec()).collect()
}
#[allow(dead_code)]
fn yn(result: bool) {
    if result {
        println!("Yes");
    } else {
        println!("No");
    }
}

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:
  print('GREATER')
elif a==b:
  print('EQUAL')
else:
  print('LESS')

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:print('GREATER')
elif a==b:print('EQUAL')
else:print('LESS')

Submission status: Runtime Error

Solution code:
a,b=map(int,input())
if a>b:print('GREATER')
elif a==b:print('EQUAL')
else:print('LESS')

Submission status: Runtime Error

Solution code:
a,b = int(input()), int(input())

print('GREATER' if a>b or 'LESS')

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
#define rep(i, n) for (int i=0; i<n; ++i)
#define rep1(i, n) for (int i=1; i<=n; ++i)
#define ALL(v) v.begin(), v.end()
#define RALL(v) v.rbegin(), v.rend()
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
constexpr ll  MOD = (1e9+7);
constexpr int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
constexpr int lcm(int a, int b) { return a / gcd(a, b) * b; }

template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
ll factorial(ll n, ll m=2) {
    // calculate n!
    m = max(2LL, m);
    ll rtn = 1;
    for (ll i=m; i<=n; i++) {
        rtn = (rtn * i) % MOD;
    }
    return rtn;
}
ll modinv(ll a, ll m) {
    ll b = m, u = 1, v = 0;
    while (b) {
        ll t = a / b;
        a -= t * b;
        swap(a, b);
        u -= t * v;
        swap(u, v);
    }
    u %= m;
    if (u < 0) u += m;
    return u;
}
ll modpow(ll a, ll n) {
    ll res = 1;
    while (n > 0) {
        if (n & 1)
            res = res * a % MOD;
        a = a * a % MOD;
        n >>= 1;
    }
    return res;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    string a, b; cin >> a >> b;
    if (a.size() > b.size()) {
        cout << "GREATER" << endl;
    } else if (a.size() < b.size()) {
        cout << "LESS" << endl;
    } else {
        rep(i, a.size()) {
            if (a[i] > b[i]) {puts("GREATER"); return 0;}
            else if (a[i] < b[i]) {puts("LESS"); return 0;}
        }
        puts("EQUAL");
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

print('GREATER' if A>B else 'LESS' if b>a else 'EQUAL' )

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
s0 = a[0]
count=0
if a[0]==0:
  s0+=1
  count+=1
for i in range(1,n):
  s1 = s0+a[i]
  if s0*s1>=0:
    if s1>0:
      a[i]-=(abs(s1)+1)
      count+=(abs(s1)+1)
    elif s1<0:
      a[i]+=(abs(s1)+1)
      count+=(abs(s1)+1)
    elif s1==0:
      if s0>0:
        a[i]-=1
        count+=1
      elif s0<0:
        a[i]+=1
        count+=1
      else:break
  s0 += a[i]
print(count)

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:
    print('GREATER')
elif a<b:
    print('LESS')
else:
    print('EQUAL')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

import sys
if len(str(A))>len(str(B)):
    print('GREATER')
    sys.exit()
elif len(str(A))<len(str(B)):
    print('LESS')
    sys.exit()
else:
    for a,b in zip(A,B):
        if a>b:
            print('GREATER')
            sys.exit()
        elif a<b:
            print('LESS')
            sys.exit()
print('EQUAL')

Submission status: Runtime Error

Solution code:
a = input()
b = input()

print('GREATER' if a>b else if 'LESS' if a<b else 'EQUAL')

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

print('GREATER' if a>b else if 'LESS' if a<b else 'EQUAL')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
print('LESS' if A < B else 'GREATER' A > B else 'EQUAL')

Submission status: Runtime Error

Solution code:
a, b = map(int,input().split())
print("GREATER" if a > b else "LESS" if a < b else "EQUAL")

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  if(a>b) cout << "GREATER" << endl;
  else cout << "LESS" << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    a == b:
    print('EQUAL')

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A > B:
  print('GREATER')
elif B < A:
  print('LESS')
else:
  print('EQUAL')

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
print("GREATER" if a > b else "LESS" if a < b else "EQUAL")

Submission status: Runtime Error

Solution code:
a,b=map(int, input().split())
print('GREATER' if(a>b) else 'LESS' if(b<a) else 'EQUAL')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
print("GREATER") if a>b else print("LESS") if a<b else print("EQUAL")

Submission status: Runtime Error

Solution code:
A = int(input())
B = Int(input())

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

Submission status: Runtime Error

Solution code:
A,B = map(int, input().strip().split(' '))
if A > B:
  print('GREATER')
elif A < B:
  print('LESS')
else:
  print('EQUAL')

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print("GRATER" if a>b else "LESS" if a<b else "EQUAL")

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split(' '))
if A > B:
  print('GREATER')
elif B > A:
  print('LESS')
else:
  print('EQUAL')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
print("GREATER" if a > b else "LESS" a < b else "EQUAL")

Submission status: Runtime Error

Solution code:
a,b = int(input())
b = int(input())
if a == b:
    print("EQUAL")
elif a > b:
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a = int(input())
b ^ int(input())
if a == b:
  print("EQUAL")
elif a > b:
  print("LESS")
else:
  print("GREATER")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:print("GREATER")
elif a<b:print("LESS")
else:print("EQUAL")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input()
b=input()
if a>b:
   print("GREATER")
else if a<b:
    print("LESS")
else if a==b:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <algorithm>
#include <utility>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
#include <random>
#include<map>
#include <iomanip>
#include <time.h>
#include <stdlib.h>
#include <list>
#include <typeinfo>
#include <list>
#include <set>
#include <cassert>
#include<fstream>
#include <unordered_map>
#include <cstdlib>
#include <complex>
using namespace std;
#define Ma_PI 3.141592653589793
#define eps 0.00000001
#define LONG_INF 3000000000000000000
#define GOLD 1.61803398874989484820458
#define MAX_MOD 1000000007
#define MOD 998244353
#define REP(i,n) for(long long i = 0;i < n;++i)    
#define seg_size 524288
double dot(complex<double> a, complex<double> b) {
	return a.real() * b.real() + a.imag() * b.imag();
}
double gyaku_dot(complex<double> a, complex<double> b) {
	return a.real() * b.imag() - a.imag() * b.real();
}
double leng(complex<double> a) {
	return sqrt(a.real() * a.real() + a.imag() * a.imag());
}
double angles(complex<double> a, complex<double> b) {
	double cosine = dot(a, b) / (leng(a) * leng(b));
	double sine = gyaku_dot(a, b) / (leng(a) * leng(b));
	double kaku = acos(cosine);
	if (sine <= 0) {
		kaku = 2 * Ma_PI - kaku;
	}
	return kaku;
}
vector<int> convex_hull(vector<complex<double>> a) {
	vector<int> ans;
	double now_minnest = a[0].real();
	int now_itr = 0;
	REP(i, a.size()) {
		if (now_minnest > a[i].real()) {
			now_minnest = a[i].real();
			now_itr = i;
		}
	}
	ans.push_back(now_itr);
	complex<double> ba(0, 1);
	while (true) {
		int now_go = 0;
		double now_min = 0;
		int starter = ans[ans.size() - 1];
		for (int i = 0; i < a.size(); ++i) {
			if (i != starter) {
				double goa = angles(ba, a[i] - a[starter]);
				if (goa > now_min) {
					now_min = goa;
					now_go = i;
				}
			}
		}
		if (now_go == ans[0]) break;
		ans.push_back(now_go);
		ba = complex<double>(a[now_go] - a[starter]);
	}
	return ans;
}
long long gcd(long long a, long long b) {
	if (b == 0) return a;
	return gcd(b, a % b);
}
int main() {
	string a, b;
	cin >> a >> b;
	if (a.length() < b.length()) {
		cout << "LESS" << endl;
	}
	else if (a.length() > b.length()) {
		cout << "GREATER" << endl;
	}
	else {
		REP(q, a.length()) {
			if (a[q] > b[q]) {
				cout << "GREATER" << endl;
				return 0;
			}
			else if (a[q] < b[q]) {
				cout << "LESS" << endl;
				return 0;
			}
		}
		cout << "EQUAL" << endl;
	}
}

Submission status: Runtime Error

Solution code:
import numpy as np

def main():
    a=inputList()
    if(a[0]>a[1]):
        print("GREATER")
    elif(a[0]<a[1]):
        print("LESS")
    else:
        print("EQUAL")

def inputList():
    a=list(map(int,input().split()))
    return a

def multisort(li,index):
    return sorted(li,key=lambda x: x[index])

if(__name__=='__main__'):
    main()

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if a > b:
  print('GREATER')
elif a = b:
  print('EQUAL')
else:
  print('LESS')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

answer = ''
if a > b:
  answer = 'GREATER'
elif a == b:
  answer = 'EQUAL'
else:
  answer = 'LESS'

print(answer)

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
if A > B: print('GREATER')
if A < B: print('LESS')
if A == B: print('EQUAL')

Submission status: Runtime Error

Solution code:
a=input()
b=input()
c=len(a)
d=len(b)
if c>d:
  print("GREATER")
elif c<d:
  print("LESS")
else:
  flag=0
  for i in range(c):
    if int(a[i])>int(b[i]):
      print("GREATER")
      flag=1
      break
    elif int(a[i])<int(b[i]):
      print("LESS")
      flag=1
    else:
      continue
if flag==0:
  print("EQUAL")

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
c, d = map(int, input().split())
if a == c or a == d or b == c or b == d:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()

ans = "EQUAL"
la, lb = len(a), len(b)
if la < lb:
  ans = "LESS"
elif la > lb:
  ans = "GREATER"
else:
  for i in range(n):
    if a[i] < b[i]:
      ans = "LESS"
      break
  	elif a[i] > b[i]:
      ans = "GREATER"
      break
print(ans)

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-

def solve():
    A, B = list(map(int, input().split()))
    if A > B:
        print("GREATER")
    elif A < B:
        print("LESS")
    else:
        print("EQUAL")
        

if __name__ == "__main__":
    solve()

Submission status: Runtime Error

Solution code:
import numpy as np
A = np.log10(int(input()))
B = np.log10(int(input()))

if A > B:
  print("A")
else:
  print("B")

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
if a>b:
  print("GREATER")
elif a<b:
  print("LESS")
else:
  print("EQUAL")

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
print(['LESS', 'GEATER', 'EQUAL'][(a>b)-(a==b)])

Submission status: Runtime Error

Solution code:
A,B = input().split(" ")

def compare(A,B):
    if A == B:
        return 'EQUAL'
    if len(A) > len(B):
        return 'GREATER'
    if len(B) > len(A):
        return 'LESS'
    for i in range(len(A)):
        a = int(A[i])
        b = int(B[i])
        if a > b:
            return 'GREATER'
        if b > a:
            return 'LESS'

print(compare(A,B))

Submission status: Runtime Error

Solution code:
A, B = eval("int(input())" * 2)
if A > B:
	print("GREATER")
elif A < B:
	print("LESS")
else:
	print("EQUAL")

Submission status: Runtime Error

Solution code:
A, B = eval("int(input()," * 2)
if A > B:
	print("GREATER")
elif A < B:
	print("LESS")
else:
	print("EQUAL")

Submission status: Runtime Error

Solution code:
B = input().split()
A = int(B[1])
B = int(B[0])
if A==B:
  print("EQUAL")
elif A>B:
  print("GREATER")
  elif A<B:
    print("LESS")

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
ans='LESS'
if a>b:
    ans='GREATER'
elif a==b:
    ans='EQUAL'
print(ans)

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
print("GREATER"if A>B else"LESS"if A<B else"EQUAL")

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

if A==B:
  ans = 'EQUAL'
elif A<B:
  ans = 'LESS'
else:
  ans = 'GREATER'

print(ans)

Submission status: Runtime Error

Solution code:
a,b = input()

if len(a) < len(b):
  print("LESS")
  exit()
elif len(a) > len(b):
  print("GREATER")
  exit()
else:
  for i in xrange(len(a)):
    if a[i] > b[i]:
      print("GREATER")
      exit()
    elif a[i] < b[i]:
      print("LESS")
      exit()
    else:
      continue
print("EQUAL")

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split());print("GREATER"if a>b else"LESS"if a<b else"EQUAL")

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

if A > B:
    ans = 'GREATER'
elif A == B:
    ans = 'EQUAL'
else:
    ans = 'LESS'

Submission status: Runtime Error

Solution code:
a=input()
b=input()
if len(a)>len(b):
  print("GREATER")
elif len(a)<len(b):
  print("LESS")
else:
  i=0
  while 1:
    if int(a[i])>int(b[i]):
      f=1
      break
    elif int(a[i])<int(b[i]):
      f=2
      break
    i+=1
  if f==1:
    print("GREATER")
  else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a=input()
b=input()
if len(a)>len(b):
  print("GREATER")
elif len(a)<len(b):
  print("LESS")
else:
  i=0
  while 1:
    if int(a[i])>int(b[i]):
      f=1
    elif int(a[i]<int(b[i]):
      f=2
    i+=1
  if f==1:
    print("GREATER")
  else:
    print("LESS")

Submission status: Runtime Error

Solution code:
n,m = map(int,input().split())

a = [list(input()) for i in range(n)]

h = []
l = []
co = 0
for i in range(n):
    co = 0
    for j in range(m):
        if a[i][j] == "#":
            co = 1
    if co == 0:
        l.append(i)
for i in range(m):
    co = 0
    for j in range(n):
        if a[j][i] == "#":
            co = 1
    if co == 0:
        h.append(i)

for i in range(len(l)):
    a.pop(l.pop())

for i in range(len(h)):
    p = h.pop()
    for j in range(len(a)):
        a[j].pop(p)

for i in range(len(a)):
    print("".join(a[i]))

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int main(void){
    int a,b;
    scanf("%d",&a);
    scanf("%d",&b);
    if(a==b){
        printf("EQUAL\n");
    }else{
        if (a>b){
            printf("GREATER\n");
        }
        else{
            printf("LESS\n");
        }
    }
}

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int main(void){
    int a,b;
    scanf("%d\n",&a);
    scanf("%d\n",&b);
    if(a==b){
        printf("EQUAL\n");
    }else{
        if (a>b){
            printf("GREATER\n");
        }
        else{
            printf("LESS\n");
        }
    }
}

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int main(void){
    int a,b;
    scanf("%d\n",&a);
    scanf("%d\n",&b);
    if(a==b){
        printf("EQUAL\n");
    }else{
        if (a>b){
            print("GREATER\n");
        }
        else{
            pritn("LESS\n");
        }
    }
}

Submission status: Runtime Error

Solution code:
a,b=input().split()
if a > b:
  print('GREATER')
elif a == b:
  print('EQUAL')
else:
  print('LESS')

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if a > b:
  print("GREATER")
else if:
  print("LESS")
else:
  print("EQUAL")

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
from decimal import Decimal as deci
*a, = map(int, input().split())
if deci(a[0]) == deci(a[1]):
    print("EQUAL")
else:
    print("GREATER" if deci(a[0]) > deci(a[1]) else "LESS")

Submission status: Runtime Error

Solution code:
*a, = map(int, input().split())
if a[0] == a[1]:
    print("EQUAL")
else:
    print("GREATER" if a[0] > a[1] else "LESS")

Submission status: Runtime Error

Solution code:
a=input().split()
if a[0]>a[1]:
    print("GREATER\n")
elif a[0]==a[1]:
    print("EQUAL\n")
else:
    print("LESS\n")

Submission status: Runtime Error

Solution code:
a=input().split()
if a[0]>a[1]:
    print("GREATER")
elif a[0]==a[1]:
    print("EQUAL")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a=input()
b=input()

flag=0
if len(b) < len(a):
  print('GREATER')
  flag=1
if len(b) > len(a):
  print('LESS')
  flag=1

for i in range(len(a)):
  if b[i] < a[i] and flag==0:
    print('GREATER')
    flag=1
  elif b[i] > a[i] and flag==0:
    print('LESS')
    flag=1
    
if flag==0:
  print('EQUAL')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a > b:
  print("GREATER")
elif a == b:
  print("EQUAL")
else:
  print("LESS")

Submission status: Runtime Error

Solution code:
a,b = [int(i) for i in input().split()]
if a < b:
    print("LESS")
elif a > b:
    print("GREATER")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if len(A) > len(B):
    print('GREATER')
elif len(A) < len(B):
    print('LESS')
elif A == B:
    print('EQUAL')
else:
    a = [int(i) for i in str(A)]
    b = [int(j) for j in str(B)]
    for i in range(len(A)):
        if A[i] > B[i]:
            print('GREATER')
            break
        elif A[i] < B[i]:
            print('LESS')
            break

Submission status: Runtime Error

Solution code:
A = input()
B = input()
AA = f"{A:>101}"
BB = f"{B:>101}"
if AA == BB:
    print("EQUAL")
elif AA>BB:
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
A = int(input())
B = int(input())
S = A-B
if S > 0:
  print("GREATER")
elif S = 0:
  print("EQUAL")
else:
  print("LESS")

Submission status: Runtime Error

Solution code:
a=input()
b=input()

if a > b:
    printf("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A > B :
    print("GREATER")
elif A < B :
    print("LESS")
else :
    print("EQUAL")

Submission status: Runtime Error

Solution code:
a, b = list(map(int, input().split()))
if a > b:
  print('GREATER')
else:
  print('LESS')

Submission status: Runtime Error

Solution code:
a=input()
b=input()
if a>b:
    print("GREATER")
elif a=b
    print("EQUAL")
else
    print("LESS")

Submission status: Runtime Error

Solution code:
a,b = [long(input()) for i in range(2)]
if a == b:
    print("EQUAL")
elif a < b:
    print("LESS")
elif a > b:
    print("GREATER")

Submission status: Runtime Error

Solution code:
a,b = [input() for i in range(2)]
if a == b
    print("EQUAL")
elif a < b:
    print("LESS")
elif a > b:
    print("GREATER")

Submission status: Runtime Error

Solution code:
a,b = [long(input()) for i in range(2)]
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    prin("EQUAL")

Submission status: Runtime Error

Solution code:
p=input;a=int(p())-int(p());print(['EQUAL','LESS'][a<0],'GREATER'][a>0])

Submission status: Runtime Error

Solution code:
a,b=map(int, input().split())
if a > b: print('GREATER')
elif a < b:print('LESS')
else: print('EQUAL')

Submission status: Runtime Error

Solution code:
a,b=map(int, input().split())
if a > b: print('GREATER')
elif: a < b:print('LESS')
else: print('EQUAL')

Submission status: Runtime Error

Solution code:
A, B = map(int, raw_input().split())
print "GREATER" if A>B else ("LESS" if A<B else "EQUAL")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
a,b = map(int, input().split())
if a > b :
    print("GREATER")
esle:
    print("LESS")

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
if a > b:
	print('GREATER')
elif a < b:
	print('LESS')
else:
	print('EQUAL')

Submission status: Runtime Error

Solution code:
A,B = map(int,input().split())
if A==B:
    print("EQUAL")
elif A>B:
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
A,B = [int(i) for i in input().split()]
if A>B:
  print('GREATER')
elif A<B:
  print('LESS')
else:
  print('EQUAL')

Submission status: Runtime Error

Solution code:
ab = [int(input()) for _ in range(2)]
if a[0] > a[1]: print('GREATER')
elif a[0] < a[1]: print('LESS')
else: print('EQUAL')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A > B:
  print("GREATER")
eiif A == B:
  print("EQUAL")
else:
  print("LESS")

Submission status: Runtime Error

Solution code:
/Users/miyauchitoru/Python_Competitive-programming/bin/python "/Users/miyauchitoru/PycharmProjects/Competitive_Programming/AtCorder/AtCoder Beginner Contest 077/compe.py"
123456789012345678901234567890
234567890123456789012345678901
LESS

Process finished with exit code 0

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
print('GREATER' if a>b else 'LESS' if a<b else 'EQUAL')

Submission status: Runtime Error

Solution code:
a,b=[int(i) for i in input().split()]
if a>b:
    print('GREATER')
elif a<b:
    print('LESS')
else:
    print('EQUAL')

Submission status: Runtime Error

Solution code:
num=[]
for i in [0]*2:
    num.append(int(input()))
if num[0]>num[1]:
    print("GREATER")
elif num[0]=num[1]:
    print("EQUAL")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
x = input().split(" ")
a = int(x[0])
b = int(x[1])


if (a>b):
    print("GREATER")
elif(a==b):
    print("EQUAL")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A == B:
	print "GREATER"
elif A < B:
	print "LESS"
else:
	print "EQUAL"

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if a>b:
    print("GREATER")
elif a<b:
    print("EQUAL")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
from sys import stdin
a = int(stdin.readline())
b = int(stdin.readline())
ans = 'GREATER'
if a < b:
 ans = 'LESS'
elilf a==b:
 ans = 'EQUAL'
print ans

Submission status: Runtime Error

Solution code:
inputs = [int(x) for x in input().split(" ")]
A = inputs[0]
B = inputs[1]


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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

s1 = int(raw_input())
s2 = int(raw_input())
if s1>s2:
    print "GREATER"
elif s1 == s2:
    print "EQUAL"
else:
    print "LESS

Submission status: Runtime Error

Solution code:
s1 = int(raw_input())
s2 = int(raw_input())
if s1>s2:
    print "GREATER"
if s1 == s2:
    print "EQUAL"
if s1 < s2:
    print "LESS

Submission status: Runtime Error

Solution code:
s1 = int(raw_input())
s2 = int(raw_input())
if s1>s2:
    print "GREATER"
elif s1 == s2:
    print "EQUAL"
else:
    print "LESS

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a > b:
  print("GREATER")
else :
  print("LESS")

Submission status: Runtime Error

Solution code:
a, b  = input(), input()
if a>b:
    print 'GREATER'
else if a<b:
    print 'LESS'
else:
    print 'EQUAL'

Submission status: Runtime Error

Solution code:
a=list(input())
b=list(input())
for i in range(len(a)):
    a[i]=int(a[i])
    i=i+1
for i in range(len(b)):
    b[i]=int(b[i])
    i=i+1
if len(a)==len(b):
    i=0
    while a[i]==b[i] and i<len(a):
        i=i+1
    if i==len(a)-1:
        print("EQUAL")
    elif a[i]>b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a)>len(b):
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a=list(input())
b=list(input())
for i in range(len(a)):
    a[i]=int(a[i])
for i in range(len(b)):
    b[i]=int(b[i])
if len(a)==len(b):
    i=0
    while a[i]==b[i] and i<len(a):
        i=i+1
    if i==len(a)-1:
        print("EQUAL")
    elif a[i]>b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a)>len(b):
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a=list(input())
b=list(input())
for i in range(len(a)):
    a[i]=int(a[i])
for i in range(len(b)):
    b[i]=int(b[i])
if len(a)==len(b):
    i=0
    while a[i]==b[i] and i<len(a):
        i=i+1
    if i==len(a):
        print("EQUAL")
    elif a[i]>b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a)>len(b):
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a=list(input())
b=list(input())
for i in range(len(a)):
    a[i]=int(a[i])
for i in range(len(b)):
    b[i]=int(b[i])
if len(a)==len(b):
    i=0
    while a[i]==b[i]:
        i=i+1
    if i==len(a):
        print("EQUAL")
    elif a[i]>b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a)>len(b):
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a=list(input())
b=list(input())
for i in range(len(a)):
    a[i]=int(a[i])
for i in range(len(b)):
    b[i]=int(b[i])
if len(a)==len(b):
    i=0
    while a[i]==b[i]:
        i=i+1
    if i==len(a):
        print("EQUAL")
    if a[i]>b[i]:
        print("GREATER")
    else:
        print("LESS")
elif len(a)>len(b):
     print("GREATER")
else:
     print("LESS")

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-

n = int(raw_input())
numlist = (raw_input()).split(' ')

count = 0

i = 0
while (int(numlist[i]) == 0):
 i += 1

if (int(numlist[0]) == 0):
    if (int(numlist[i]) > 0):
        numlist[0] = (-1) ** i
    else:
        numlist[0] = (-1) ** (i+1)
    count += 1

sumlist = [int(numlist[0])]

for i in range(1, n):
  sumlist.append(sumlist[i-1] + int(numlist[i]))
  while (True):
    if (sumlist[i-1] > 0 and sumlist[i] > 0):  #i-1,i番目までのsumがともに正
      numlist[i] = int(numlist[i]) - (sumlist[i] + 1)
      count += sumlist[i] + 1
      sumlist[i] = -1
    elif (sumlist[i-1] < 0 and sumlist[i] < 0):  #i-1,i番目までのsumがともに負
      numlist[i] = int(numlist[i]) + ((-1)*sumlist[i] + 1)
      count += (-1)*sumlist[i] + 1
      sumlist[i] = 1
    elif (sumlist[i] == 0):  #i番目までのsum=0
      if (sumlist[i-1] > 0):
        numlist[i] = int(numlist[i]) - 1
        sumlist[i] -= 1
      if (sumlist[i-1] < 0):
        numlist[i] = int(numlist[i]) + 1
        sumlist[i] += 1
      count += 1
    else:
      break
    #print numlist
    #print sumlist

print count

Submission status: Runtime Error

Solution code:
import math
import sys

x,y=[int(i) for i in input().split()]

if x == y:
    print("EQUAL")
elif x > y:
    print("GREATER")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
import math
import sys

x,y=[int(i) for i in input().split()]

if x > y:
    print("GREATER")
elif x == y:
    print("EQUAL")
else:
    print("LESS")

Submission status: Runtime Error

Solution code:
a = input()
b = input()

if a > b:
    print "GREATER
elif a < b:
    print "LESS"
else:
    print "EQUAL"

Submission status: Runtime Error

Solution code:
a=(int)(input()-input());print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')

Submission status: Runtime Error

Solution code:
a=int(input()-input());print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')

Submission status: Runtime Error

Solution code:
a=input()-input();print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')