qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a = int(input())
b = int(input())
if a == b:
    print("EQUAL")
elif a > b:
    print("GREATER")
else:
    print("GREATER")

Fixed code:
a = int(input())
b = int(input())
if a == b:
  print("EQUAL")
elif a > b:
  print("GREATER")
else:
  print("LESS")
Buggy 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")

Fixed 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")
Buggy code:
a,b = map(int,input().rstrip().split(' '))
if(a>b):print("GREATER")
elif(a<b):print("LESS")
else:print("EQUAL")


Fixed code:
# a,b = map(int,input().rstrip().split(' '))
a = int(input().rstrip())
b = int(input().rstrip())
if(a>b):print("GREATER")
elif(a<b):print("LESS")
else:print("EQUAL")
Buggy code:
a=int(input())
b=int(input())
if a<b:
  print('LESS')
elif a=b:
  print('EQUAL')
else:
  print('GREATER')

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

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

Fixed code:
a = int(input())
b = int(input())
if a == b:
    print("EQUAL")
elif a>b:
    print("GREATER")
else:
    print("LESS")
Buggy code:
A=input()
B=input()
a=len(A)
b=len(B)
if a>b:
  print("GREATER")
elif b>a:
  print("LESS")
else:
  i=0
  while i<a:
    if A[i]>B[i]:
      print("GRATER")
      break
    elif B[i]>A[i]:
      print("LESS")
      break
    else:
      i=i+1
      if i==a:
        print("EQUAL")

Fixed code:
A=input()
B=input()
a=len(A)
b=len(B)
if a>b:
  print("GREATER")
elif b>a:
  print("LESS")
else:
  i=0
  while i<a:
    if A[i]>B[i]:
      print("GREATER")
      break
    elif B[i]>A[i]:
      print("LESS")
      break
    else:
      i=i+1
      if i==a:
        print("EQUAL")
Buggy code:
a = input()
b = input()
ret = ""
if len(a) > len(b):
    ret = "GREATER"
elif len(a) < len(b):
    ret = "LESS"
else:
    for (i, c) in enumerate(a):
        if(c > b[i]):
            ret = "GREATER"
            break
        elif len(a) < len(b):
            ret = "LESS"
            break
        else:
            pass
if ret == "":
    print("EQUAL")
else:
    print(ret)


Fixed code:
a = input()
b = input()
ret = ""
if len(a) > len(b):
    ret = "GREATER"
elif len(a) < len(b):
    ret = "LESS"
else:
    for (i, c) in enumerate(a):
        if(c > b[i]):
            ret = "GREATER"
            break
        elif(c < b[i]):
            ret = "LESS"
            break
        else:
            pass
if ret == "":
    print("EQUAL")
else:
    print(ret)
Buggy code:
A = input()
B = input()

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

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

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

Fixed code:
A = int(input())
B = int(input())
if A>B:
	print('GREATER')
elif A==B:
	print('EQUAL')
else:
	print('LESS')
Buggy code:
import sys
from collections import Counter
readline = sys.stdin.buffer.readline
MOD = 10**9+7

def main():
    A, B = map(int, readline().split())
    if A>B:
        print('GREATER')
    elif A<B:
        print('LESS')
    else:
        print('EQUAL')




if __name__ == '__main__':
    main()

Fixed code:
import sys
from collections import Counter
readline = sys.stdin.buffer.readline
MOD = 10**9+7

def main():
    A = int(readline())
    B = int(readline())
    if A>B:
        print('GREATER')
    elif A<B:
        print('LESS')
    else:
        print('EQUAL')




if __name__ == '__main__':
    main()
Buggy code:
a = input()
b = input()
if a > b:
  print('GREATER')
elif a==b:
  print('EQUAL')
else:
  print('LESS')
  
  

Fixed code:
a=int(input())
b=int(input())
if a>b:
    print('GREATER')
elif a == b:
    print('EQUAL')
else:
    print('LESS')
Buggy 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()


Fixed code:
import numpy as np

def main():
    a=int(input())
    b=int(input())
    if(a>b):
        print("GREATER")
    elif(a<b):
        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()
Buggy 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")

Fixed 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")
Buggy code:
# coding: utf-8
A = input()
B = input()
print("GREATER" if A>B else "LESS" if A<B else "EQUAL")


Fixed code:
# coding: utf-8
A = int(input())
B = int(input())
print("GREATER" if A>B else "LESS" if A<B else "EQUAL")
Buggy code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a = i_input()
    b = i_input()

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

if __name__ == '__main__':
    main()


Fixed code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a = i_input()
    b = i_input()

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

if __name__ == '__main__':
    main()
Buggy 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)

Fixed 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(la):
		if a[i] < b[i]:
			ans = "LESS"
			break
		elif a[i] > b[i]:
			ans = "GREATER"
			break
print(ans)
Buggy code:
A=input().rstrip()
B=input().strip()
if A==B: print("EQUAL")
elif A>B: print("GREATER")
else: print("LESS")

Fixed code:
A=input().rstrip()
B=input().strip()
if len(A)>len(B): print("GREATER")
elif len(A)<len(B): print("LESS")
else:
  if A==B: print("EQUAL")
  elif A>B: print("GREATER")
  else: print("LESS")
Buggy code:
a = int(input())
b = int(input())

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

Fixed code:
a = int(input())
b = int(input())
if a>b:
    print('GREATER')
elif a == b:
    print('EQUAL')
else:
    print('LESS')
Buggy code:
def main():

    a = int(input())
    b = int(input())

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

main()

Fixed code:
def main():

    a = int(input())
    b = int(input())

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

main()
Buggy code:
a = int(input())
b = int(intpu())
if a > b:
  print('GREATER')
elif a < b:
  print('LESS')
else:
  print('EQUAL')

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

if a > b:
    print("GREATER")

elif a < b:
    print("LESS")

else:
    print("EQUAL")
Buggy code:
A = input()
B = input()

ans = "EQUAL"
for a,b in zip(A,B):
    if a > b:
        ans = "GREATER"
        break
    elif a < b:
        ans = "LESS"
        break
    else:
        pass
print(ans)

Fixed code:
A = input()
B = input()

ans = "EQUAL"

if len(A) == len(B):
    for a,b in zip(A,B):
        if a > b:
            ans = "GREATER"
            break
        elif a < b:
            ans = "LESS"
            break
        else:
            pass
elif len(A) > len(B):
    ans = "GREATER"
else:
    ans = "LESS"
print(ans)
Buggy code:
a=int(input())
b=int(input())
print("GREATER", if a>b else "LESS" if a<b else "EQUAL")

Fixed code:
a=int(input())
b=int(input())
print('GREATER' if a>b else 'LESS' if a<b else 'EQUAL')
Buggy code:
A = int(input())
B = int(input())
if A > B:
  print("GREATER")
if A < B:
  print("LESS")
else:
  print("EQUAL")
        

Fixed code:
A = int(input())
B = int(input())
print("GREATER" if A > B else "LESS" if A < B else "EQUAL")
Buggy code:
a,b=[int(input())for _ in[0]*2]
print("GREATER"if a>b else"ELQEUEAEL"[a<b::2])

Fixed code:
a,b=[int(input())for _ in[0]*2]
print("GREATER"if a>b else"ELQEUSASL"[a<b::2])
Buggy code:
a=input()
b=input()
if a>b:
  print("GREATER")
elif a<b:
  print("LESS")
else :
  print("EQUAL")

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

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


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

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

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

if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")
Buggy code:
A, B = int(input())
if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Fixed code:
A = int(input())
B = int(input())
if A > B :
    print("GREATER")
elif A < B :
    print("LESS")
else :
    print("EQUAL")
Buggy code:
a = input()
b = input()
if a < b:
  print("LESS")
elif a == b:
  print("EQUAL")
else:
  print("GREATER")


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

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

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

Fixed code:
a = int(input())
b = int(input())
if(a > b):
    print("GREATER")
elif(a < b):
    print("LESS")
elif(a == b):
    print("EQUAL")
Buggy code:
a = input()
b = input()

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

Fixed code:
a = int(input())
b = int(input())
if a > b:
	print("GREATER")
elif a < b:
	print("LESS")
elif a == b:
	print("EQUAL")
Buggy code:
a = input()
b = input()

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

Fixed code:
a = int(input())
b = int(input())
if a > b: print("GREATER")
elif a < b: print("LESS")
else: print("EQUAL")
Buggy code:
A = int(input())
B = int(input())
if A > B:
    print("GREATER")
elif A=B:
    print("EQUAL")
else:
    print("LESS")

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

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')
Buggy code:
a = int(input())
b = int(input())
if a > b:
  print('GREATER')
elif a = b:
  print('EQUAL')
else:
  print('LESS')

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




if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")
Buggy code:
A = input()
B = input()

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

Fixed code:
A=int(input())
B=int(input())
if (A>B):
	print('GREATER')
elif(A==B):
	print('EQUAL')
else:
	print('LESS')
Buggy code:
a = int(input())
b = int(input())

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

Fixed code:
a=int(input())
b=int(input())
ans = ''
if a>b :
	ans='GREATER'
elif a<b:
	ans='LESS'
else:
	ans='EQUAL'
print(ans)
Buggy code:
n1 = input()
n2 = input()
if n1 < n2:
    print("LESS")
elif n1 > n2:
    print('GREATER')
else:
    print('EQUAL')

Fixed code:
n1 = int(input())
n2 = int(input())
if n1 < n2:
    print("LESS")
elif n1 > n2:
    print('GREATER')
else:
    print('EQUAL')
Buggy code:
A = int(input())
B = int(input())
if A > B:
  print('GREATER')
elif B < A:
  print('LESS')
else:
  print('EQUAL')

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

if A>B:
    print("GREATER")
elif A==B:
    print("EQUAL")
else:
    print("LESS")
Buggy code:
a,b=map(int,open(0));print(("GREATER","EQUAL","LESS")[(a==b)+(a<b)])

Fixed code:
a,b=map(int,open(0));print(("GREATER","EQUAL","LESS")[(a<=b)+(a<b)])
Buggy code:
A=int(input())
B=int(input())
if A>B:
    print("GREATER")
elif A==B:
    print("LESS")
else:
    print("EQUAL")

Fixed code:

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

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

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

Fixed code:
A = input()
B = input()

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

if A<B:
	print('LESS')
elif A==B:
	print('EQUAL')
else:
	print('GREATER')
Buggy code:
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

Fixed code:
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

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

Fixed code:
A=int(input())
B=int(input())
if A>B:
    print("GREATER")
elif A==B:
    print("EQUAL")
else:
    print("LESS")
Buggy code:
a=int(input())
b=int(input())
if a>b:print("GREATER")
elif a<b:print("LESS")
else print("EQUAL")

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

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

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

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

if a == b:
    print("EQUAL")

elif a >b:
    print("GREATER")

else:
    print("LESS")
Buggy code:
MOD=1000000007

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

if __name__ == "__main__":
    solve()

Fixed code:
MOD=1000000007

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

if __name__ == "__main__":
    solve()
Buggy code:
import sys
input = sys.stdin.readline().strip
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")


Fixed code:
import sys
input = sys.stdin.readline
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
else:
    print("EQUAL")
Buggy code:
A,B=input(),input()
print("GREATER" if A>B else "LESS" if A<B else "EQUAL")

Fixed code:
A,B=int(input()),int(input())
print("GREATER" if A>B else "LESS" if A<B else "EQUAL")
Buggy code:
a = input()
b = input()
if a > b:
    print('GREATER')
elif a < b:
    print('LESS')
else:
    print('EQUAL')


Fixed code:

a = int(input())
b = int(input())

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

Fixed code:
a,b=[list(input()) for i in range(2)]
if len(a)>len(b):
  print("GREATER")
elif len(a)<len(b):
  print("LESS")
elif a>b:
  print("GREATER")
elif a<b:
  print("LESS")
else:
  print("EQUAL")
Buggy code:
a=int(input())-int(input())
print(['LESS','EQUAL','GREATER'][a>=0 + a==0])

Fixed code:
a=int(input())-int(input())
print(['LESS','GREATER','EQUAL'][(a>=0)+(a==0)])
Buggy code:
x = int(input())-int(input())
if x>0:
  print("GREATER")
if x==0:
  print("EQUAL")
else:
  print("LESS")

Fixed code:
x = int(input())-int(input())
if x>0:
  print("GREATER")
elif x==0:
  print("EQUAL")
else:
  print("LESS")
Buggy code:
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

def main():
    a,b = map(int, input().split())

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


if __name__ == '__main__':
    main()


Fixed code:
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

def main():
    a = int(input())
    b = int(input())

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


if __name__ == '__main__':
    main()
Buggy code:
a=input()
b=input()
if(a>b):
  print('GREATER')
elif(a==b):
  print('EQUAL')
else:
  print('LESS')

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

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

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

if len(a)<len(b):
    print("LESS")
elif len(a)>len(b):
    print("GREATER")
elif a<b:
    print("LESS")
elif a>b:
    print("GREATER")
else:
    print("EQUAL")
Buggy code:
a =int(input())
b =int(input())
if a>b:print('GREATER')
elif b<a:print('LESS')
else:print('EQUAL')


Fixed code:
a=int(input())
b=int(input())
if a>b:
    print("GREATER")
elif a<b:
    print("LESS")
elif a==b:
    print("EQUAL")
Buggy code:
a=int(input())
b=int(input())
print('GREATER'if a>b else'LESS'if b<a else'EQUAL')

Fixed code:
a = int(input())
b = int(input())
print('GREATER' if a > b else 'LESS' if a < b else 'EQUAL')
Buggy code:
A=int(input())
B=int(input())

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

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

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


Fixed code:
A, B = eval("int(input())," * 2)
if A > B:
	print("GREATER")
elif A < B:
	print("LESS")
else:
	print("EQUAL")
Buggy code:
a=input()-input();print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')

Fixed code:
a=(int)(input())-(int)(input());print(a>0 and'GREATER'or a<0 and'LESS'or'EQUAL')
Buggy code:
A = input()
B = input()
if A < B:
    print('LESS')
if A == B:
    print('EQUAL')
if A > B:
    print('GREATER')

Fixed code:
A = int(input())
B = int(input())
if A < B:
    print('LESS')
if A == B:
    print('EQUAL')
if A > B:
    print('GREATER')
Buggy code:
a = int(input())
b = int(input())
if a > b:
    print(GREATER)
elif a < b:
    print("LESS")
else:
    print("EQUAL")

Fixed code:
a=int(input())
b=int(input())
if a>b:
  print("GREATER")
elif a==b:
  print("EQUAL")
else:
  print("LESS")
Buggy 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')

Fixed code:
a = [int(input()) for _ in range(2)]
if a[0] > a[1]: print('GREATER')
elif a[0] < a[1]: print('LESS')
else: print('EQUAL')
Buggy code:
a = input()
b = input() 
if len(a) < len(b):
  print("LESS")
  exit()
elif len(a) > len(b):
  print("GREATER")
  exit()
else:
  for i in range(len(a)):
    if a[i] > b[i]:
      print("GREATER")
      exit()
    elif a[i] < b[i]:
      print("LESS")
print("EQUAL")

Fixed code:
a = input()
b = input() 
if len(a) < len(b):
  print("LESS")
  exit()
elif len(a) > len(b):
  print("GREATER")
  exit()
else:
  for i in range(len(a)):
    if a[i] > b[i]:
      print("GREATER")
      exit()
    elif a[i] < b[i]:
      print("LESS")
      exit()
print("EQUAL")
Buggy code:
A = int(input())
B = int(input())
print('LESS' if A < B else 'GREATER' A > B else 'EQUAL')

Fixed code:
A, B = int(input()), int(input())
print("GREATER" if A > B else "LESS" if A < B else "EQUAL")
Buggy code:
a=int(input())
b=int(input())
if a>b:
  print('GREATER')
elif a=b:
  print('EQUAL')
else:
  print('LESS')

Fixed code:
a = int(input())
b = int(input())
if a > b: print('GREATER')
elif a < b:print('LESS')
else: print('EQUAL')
Buggy code:
def main():
    A = int(input())
    B = int(input())

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

if __name__ == "__main__":
    main()


Fixed code:
def main():
    A = int(input())
    B = int(input())

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

if __name__ == "__main__":
    main()
Buggy code:
A = input()
B = input()

if len(A) > len(B):
    print("GREATER")
else:
    i = 0
    while True:
        if A[i] > B[i]:
            print("GREATER")
            break
        elif A[i] < B[i]:
            print("LESS")
            break
        else:
            if i == len(A)-1:
                print("EQUAL")
            else:
                i += 1

Fixed code:
A = input()
B = input()

if len(A) > len(B):
    print("GREATER")
elif len(A) < len(B):
    print("LESS")
else:
    i = 0
    while True:
        if A[i] > B[i]:
            print("GREATER")
            break
        elif A[i] < B[i]:
            print("LESS")
            break
        else:
            if i == len(A)-1:
                print("EQUAL")
                break
            else:
                i += 1