qyliang/CodeNanoFix huggingface dataset:
Buggy code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

input = sys.stdin.readline

def main():
    sp = list(input().strip())
    for i, c in enumerate(sp):
        print(c.upper() if i == 0 or sp[i-1] == ' ' else c, end="")
    print()

main()


Fixed code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

input = sys.stdin.readline

def main():
    sp = list(input().strip())
    s = ''
    for i, c in enumerate(sp):
        if i == 0 or sp[i-1] == ' ':
            s += c.upper()
    print(s)

main()
Buggy code:
s1, s2, s3 = input().split(" ")

print(s1[0].upper()+s2[0].upper()s3[0].upper())

Fixed code:
s1, s2, s3 = input().split(" ")
    
print(s1[0].upper()+s2[0].upper()+s3[0].upper())
Buggy code:
s1,s2,s3=input.split()
ans="".join([s1[0],s2[0],s3[0]])
print(ans.upper())

Fixed code:
s1,s2,s3=input().split()
ans="".join([s1[0],s2[0],s3[0]])
print(ans.upper())
Buggy code:
a,b,c=input().split()
print(a.upper[0]+b.upper[0]+c.upper[0])
     

Fixed code:
a , b , c = input().split()
answer = a[0] + b[0] + c [0]
print(answer.upper())
Buggy code:
a,b,c=input().split()
print(a[0]+b[0]+c[0])
     

Fixed code:
a,b,c=input().split()
print(a[0].upper()+b[0].upper()+c[0].upper())
Buggy code:
strs = input.split()
print("".join([a[0].upper() for a in strs]))

Fixed code:
strs = input().split()
print("".join([a[0].upper() for a in strs]))
Buggy code:
a,b,c=input().split
x=a[0]+b[0]+c[0]
print(x.upper())

Fixed code:
a,b,c = input().split()

print(a[0].upper() + b[0].upper() + c[0].upper())
Buggy code:
s1, s2, s3 = map( str, input().split() )
print( s1[0].upper + s2[0].upper + s3[0].upper ) 

Fixed code:
s1,s2,s3=map(str, input().split())
print ((s1[0]+s2[0]+s3[0]).upper())
Buggy code:
s1, s2, s3= map(str,input().split())

print(s1.upper()[0])
print(s2.upper()[0])
print(s3.upper()[0])

Fixed code:
s1, s2, s3= map(str,input().split())

print(s1.upper()[0] + s2.upper()[0] + s3.upper()[0])
Buggy code:
s = input()
s.upper().split(" ")

print("{}{}{}".format(s[0][0], s[1][0], s[2][0]))

Fixed code:
s = input()
s = s.upper().split(" ")

print("{}{}{}".format(s[0][0], s[1][0], s[2][0]))
Buggy code:
a, b, c = list(input().split())
s = a[0] + b[0] + c[0]
s.upper()
print(s)

Fixed code:
a,b,c=input().split()
a=list(a)
b=list(b)
c=list(c)

a[0]=a[0].upper()
b[0]=b[0].upper()
c[0]=c[0].upper()
print(a[0]+b[0]+c[0])
Buggy code:
a,b,c=input().split()
print((a[0]+b[0]+[0]).upper())

Fixed code:
a,b,c=input().split()
print((a[0] + b[0] + c[0]).upper())
Buggy code:
array=input().split()
tobeprinted=[]
print(array)
for i in range(3):
	tobeprinted.append(array[i][0].upper())
print(*tobeprinted,sep="")

Fixed code:
array=input().split()
tobeprinted=[]
for i in range(3):
	tobeprinted.append(array[i][0].upper())
print(*tobeprinted,sep="")
Buggy code:
slist=input().split()
ans=[]
for i in range(3):
    a=list(slist[i])
    ans.append(a[0])
for i in range(3):
    ans[i].upper()
for i in range(3):
    print(ans[i],end="")

Fixed code:
slist=input().split()
ans=[]
for i in range(3):
    a=list(slist[i])
    ans.append(a[0])
ANS=[]
for i in range(3):
    ANS.append(ans[i].upper())
for i in range(3):
    print(ANS[i],end="")
Buggy code:
a, b, c = input().split()
print(a[0].upper + b[0].upper, c[0].upper)

Fixed code:
a,b,c = input().split()
print(str.upper(a[0])+str.upper(b[0])+str.upper(c[0]))
Buggy code:
s1, s2, s3 = map(str, input().split())
s1.upper
s2.upper
s3.upper
print("{0}{1}{2}".format(s1[0], s2[0], s3[0])

Fixed code:
s1, s2, s3 = map(str, input().split())
print("{0}{1}{2}".format(s1.upper()[0], s2.upper()[0], s3.upper()[0]))
Buggy code:
a, b, c = map(str, input().split())
result = a[0]+b[0]+c[0]
result.upper
print(result)

Fixed code:
a,b,c=map(str, input().split())


print(a[0].upper() + b[0].upper() + c[0].upper())
Buggy code:
a, b, c = map(str, input().split())

A = list(a)
B = list(b)
C = list(c)

l = [A[0], B[0], C[0]]
print(''.join(l))

Fixed code:
a, b, c = map(str, input().split())
 
A = list(a)
B = list(b)
C = list(c)
 
l = [A[0], B[0], C[0]]
print(str.upper(''.join(l)))
Buggy code:
a,b,c=input().split()
print(a[0].upper(),b[0].upper(),c[0].upper())

Fixed code:
a, b, c = input().split()
a, b, c = a[0].upper(), b[0].upper(), c[0].upper()

print(a+b+c)
Buggy code:
a,b,c=map(input().split())
s=a[0]+b[0]+c[0]
print(s.upper())

Fixed code:
a,b,c=input().split()
s=a[0]+b[0]+c[0]
print(s.upper())
Buggy code:
a, b, c = map(int, input().split())
print(str.upper(a[0]+b[0]+c[0]))

Fixed code:
a, b, c = map(str, input().split())
print(str.upper(a[0]+b[0]+c[0]))
Buggy code:
a,b,c=input().split
ans=a.upper[0]+b.upper[0]+c.upper[0]
print(ans)

Fixed code:
a,b,c=input().split()
ans=a.upper()[0]+b.upper()[0]+c.upper()[0]
print(ans)
Buggy code:
s = input().split()
ans = ""
for i in range(3):
  ans += s[i][0]
ans.upper()
print(ans)

Fixed code:
s = input().split()
ans = ""
for i in range(3):
  ans += s[i][0]
print(ans.upper())
Buggy code:
a,b,c=input().split()
print(a[0]+b[0]+c[0])


Fixed code:
a,b,c=input().upper().split()
print(a[0]+b[0]+c[0])
Buggy code:
for a in input().upper().split():
print(a[0] end="")

Fixed code:
for a in input().upper().split():
    print(a[0],end="")
Buggy code:
A, B, C = (i.upper for i in input().split())

ans = A[0]+B[0]+C[0]
# ANS = ans.upper()
print(ans)

Fixed code:
A, B, C = (i for i in input().split())

ans = A[0]+B[0]+C[0]
ANS = ans.upper()
print(ANS)
Buggy code:
a,b,c=input().split()
A = a.upper()
B = b.upper()
C = c.upper()
print(A[0]+B[0]+c[0])

Fixed code:
a,b,c=input().split()
A = a.upper()
B = b.upper()
C = c.upper()
print(A[0]+B[0]+C[0])
Buggy code:
a,b,c = input().split()
print(upper(a[0]+b[0]+c[0]))

Fixed code:
a,b,c = input().split()
print((a[0]+b[0]+c[0]).upper())
Buggy code:
s = list(map(str,input().split()))
print(s[0][0]+s[1][0]+s[2][0])

Fixed code:
s = list(map(str,input().split()))
print((s[0][0]+s[1][0]+s[2][0]).upper())
Buggy code:
a, b, c = map(str, input().split())
A = a[0]
B = b[0]
C = c[0]

ans = A.upper() + B.upper() + C.upper()

Fixed code:
a, b, c = map(str, input().split())
A = a[0]
B = b[0]
C = c[0]

ans = A.upper() + B.upper() + C.upper()
print(ans)
Buggy code:
a, b, c = input().split()
print((a[0] + b[0] + c[0]).upper)

Fixed code:
a, b, c = input().split()
result = a[0]+b[0]+c[0]
print(result.upper())
Buggy code:
A,B,C=input().split()
A=A.upper()
B=B.upper()
C=C.upper()
print(A[0],B[0],C[0])

Fixed code:
A,B,C=input().split()
A=A.upper()
B=B.upper()
C=C.upper()
print(A[0]+B[0]+C[0])
Buggy code:
s=list(map(int,input().split()))
x=s[0]
y=s[1]
z=s[2]
small=x[0]+y[0]+z[0]
print(small.upper())


Fixed code:
s=list(map(str,input().split()))
x=s[0]
y=s[1]
z=s[2]
small=x[0]+y[0]+z[0]
print(small.upper())
Buggy code:
a,b,c=input().split()
print(a[0]+b[0]+c[0].upper())


Fixed code:
a,b,c = input().split()
print( str.upper(a[0]) + str.upper(b[0]) + str.upper(c[0]) )
Buggy code:
s1, s2, s3 = map(int, input().split())
ans = str(chr(ord(s1[0])-32)) + str(chr(ord(s2[0])-32)) + str(chr(ord(s3[0])-32))
print(ans)

Fixed code:
s1, s2, s3 = input().split()
ans = str(chr(ord(s1[0])-32)) + str(chr(ord(s2[0])-32)) + str(chr(ord(s3[0])-32))
print(ans)
Buggy code:
a,b,c = input().split()
re = a[0].upper() + b[0].upper() + c[0].upper()
print re

Fixed code:
a, b, c= input().split()
print((a[0] + b[0] + c[0]).upper())
Buggy code:
s1, s2, s3 = input().split()
print(chr(ord(s1[0])-32)+chr(ord(s2[0])-32)+chr(ord(s2[0])-32))


Fixed code:
s1, s2, s3 = input().split()
print(chr(ord(s1[0])-32)+chr(ord(s2[0])-32)+chr(ord(s3[0])-32))
Buggy code:
s1, s2, s3 = input().split()

s1 = s1[0].upper()
s2 = s2[0].upper()
s3 = s3[0].upper()
 
print(s1, s2, s3)

Fixed code:
s1, s2, s3 = input().split()

s1 = s1[0].upper()
s2 = s2[0].upper()
s3 = s3[0].upper()
 
print(s1+s2+s3)
Buggy code:
a,b,c===input().split()
print((a[0]+b[0]+c[0]).upper())

Fixed code:
a,b,c =(input().split())

print((a[0]+b[0]+c[0]).upper())
Buggy code:
a,b,c = [str(i) for i in input().split()]

s = a[0]+b[0]+c[0]

print(a.upper())


Fixed code:
a,b,c = [str(i) for i in input().split()]

s = a[0]+b[0]+c[0]

print(s.upper())
Buggy code:
s1,s2,s3 = map(str,input())
bs1 = s1.upper()
bs2 = s2.upper()
bs3 = s3.upper()
print(bs1[0]+bs2[0]+bs3[0])

Fixed code:
s1,s2,s3 = map(str,input().split())
bs1 = s1.upper()
bs2 = s2.upper()
bs3 = s3.upper()
print(bs1[0]+bs2[0]+bs3[0])
Buggy code:
a, b, c = input().split()

print(a[0]+b[0]+c[0])

Fixed code:
a, b, c = input().split()
print(a.upper()[0] + b.upper()[0] + c.upper()[0])
Buggy code:
print(a[0],end=""for a in input().upper().split())

Fixed code:
for a in input().upper().split(): print(a[0],end = "")
Buggy code:
List=list(input().upper().split())
for s in List:
  print(n[0],end="")

Fixed code:
List=list(input().upper().split())
for s in List:
  print(s[0],end="")
Buggy code:
a, b, c = input().split()
d = ""
d += a.upper()[0]
d += b.upper()[0] j
d += c.upper()[0]
print(d)

Fixed code:
a, b, c = input().split()
d = ""
d += a.upper()[0]
d += b.upper()[0] 
d += c.upper()[0]
print(d)
Buggy code:
s1,s2,s3 = [s for s in input().split()]

s = s1[0] + s2[0] + s2[0]
print(s.upper())


Fixed code:
s1,s2,s3 = [s for s in input().split()]

s = s1[0] + s2[0] + s3[0]
print(s.upper())
Buggy code:
s1,s2,s3=input().split()
S=s1[0]+s2[0]+s3[0]
S.upper()
print(S)

Fixed code:
s1,s2,s3 = input().split()
print(s1[0].upper() + s2[0].upper() + s3[0].upper())
Buggy code:
print("".join(x[0].upper()for x input().split()))

Fixed code:
print("".join(
  x[0].upper() for x in input().split()))
Buggy code:
# -*- coding: utf-8 -*-
s,t,u = map(str,input().split())
S = s[0]
T = t[0]
U = u[0]
print("{}".format(S+T+U.upper())

Fixed code:
# -*- coding: utf-8 -*-
s,t,u = map(str,input().split())
S = s[0]
T = t[0]
U = u[0]
print("{}".format((S+T+U).upper()))
Buggy code:
s1, s2, s3 = input().split()
s = s1[0]+s2[0]+s3[0]
print(upper(s))

Fixed code:
s1, s2, s3 = input().split()
s = s1[0]+s2[0]+s3[0]
print(s.upper())
Buggy code:
a,b,c=map(input().split())

a=a[0].upper()
b=b[0].upper()
c=c[0].upper()

print(a+b+c)



Fixed code:
a,b,c=input().split()

a=a[0].upper()
b=b[0].upper()
c=c[0].upper()

print(a+b+c)
Buggy code:
a,b,c=map(input().split())
A=a.upper()
B=b.upper()
C=c.upper()
print(A[0]+B[0]+C[0])


Fixed code:
a,b,c=map(str,input().split())
A=a.upper()
B=b.upper()
C=c.upper()
print(A[0]+B[0]+C[0])
Buggy code:
a, b, c = map(str, input().split())

s = a[0] + b[0] + c[0]
s.upper()
print(s)

Fixed code:
a, b, c = map(str, input().split())

s = a[0] + b[0] + c[0]
s = s.upper()
print(s)
Buggy code:
s1, s2, s3 = input().split())
print(s1[0].upper() + s2[0].upper() + s3[0].upper())

Fixed code:


s1, s2, s3 = input().split()
print(s1[0].upper() + s2[0].upper() + s3[0].upper())
Buggy code:
s = input().split()
(s[0][0] + s[1][0]+s[2][0]).upper()

Fixed code:
s = input().split()
print((s[0][0] + s[1][0]+s[2][0]).upper())
Buggy code:
s1, s2, s3 = input().split()
print(s1, s2, s3)
print(s1[0].upper() + s2[0].upper() + s3[0].upper())

Fixed code:
s1, s2, s3 = input().split()
ret = s1[0]+s2[0]+s3[0]
print(ret.upper())
Buggy code:
import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop


def main():
    s1, s2, s3 = input().split()
    ans = s1[0] + s2[0] + s3[0]
    ans.upper()
    print(ans)

if __name__ == '__main__':
    main()



Fixed code:
import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop


def main():
    s1, s2, s3 = input().split()
    ans = s1[0] + s2[0] + s3[0]
    print(ans.upper())

if __name__ == '__main__':
    main()
Buggy code:
nums = input().split()
print(nums[0][0].upper()+nums[1][0].upper()+nums[2][0].upper

Fixed code:
nums = input().split()
print(nums[0][0].upper()+nums[1][0].upper()+nums[2][0].upper())
Buggy code:
import sys
S = list(map(str,input().split()))

for I in S:
    if not I.islower():
        sys.exit()
    if len(I) < 0 or len(I) > 10:
        sys.exit()

result = ""
for J in S:
    print(J[0:1])
    result = result + J[0:1]
print(result.upper())

Fixed code:
import sys
S = list(map(str,input().split()))

for I in S:
    if not I.islower():
        sys.exit()
    if len(I) < 0 or len(I) > 10:
        sys.exit()

result = ""
for J in S:
    result = result + J[0:1]
print(result.upper())
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('LESS')
elif a>b:
    print('GREATER')
else:
    print('EQUAL')
Buggy code:
a=int(input())
b=int(input())
print("LESS" if a<b else "GREATER" else "EQUAL")

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


import numpy as np
import math

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


Fixed code:


import numpy as np
import math

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

print('GREATER' if a>b else if '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:
# -*- coding: utf-8 -*-

A = input()
B = input()

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

print(ans)

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

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

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

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


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

if A > B:
	print('GREATER')
	
if 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())
print("GREATER" if a > b else "LESS" 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,s=input(),input()
print("GREATER" if a>s else "LESS" if a<s else "EQUAL")

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

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

if len(a)>len(b):
    print('GREATER')
elif len(a)<len(b):
    print('LESS')
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=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 = input()
b = input()
if len(a) > len(b):
	print("GREATER")
elif len(a) < len(b):
	print("LESS")
else:
	for i in range(len(a)):
		if a[i] > b[i]:
			print("GREATER")
			break
		elif a[i] < b[i]:
			print("LESS")
			break
	print("EQUAL")

Fixed code:
a = input()
b = input()
if len(a) > len(b):
	print("GREATER")
elif len(a) < len(b):
	print("LESS")
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 = input().strip()
B = input().strip()

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

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

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")
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:
def main():
    a = int(input())
    b = int(input())

    if a > b:
        print("GRATER")
    elif a < b:
        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:
# -*- coding: utf-8 -*-

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

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


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

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

if A > B:
    print('GREATER')
elif B > A:
    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('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("LESS")
else:
    print("EQUAL")
Buggy code:
a,b = 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 b>a:
   print("LESS")
else:
   print("EQUAL")
Buggy code:
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

a = s()
b = s()

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

Fixed code:
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

a = i()
b = i()

if a > b:
	print("GREATER")
elif a == b:
	print("EQUAL")
else:
	print("LESS")
Buggy code:
# abc059_b.py
A = int(input())
B = int(input())
if A>B:
    print('GRETER')
elif A==B:
    print('EQUAL')
else:
    print('LESS')

Fixed code:
# abc059_b.py
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 len(A) > len(B):
  print("GREATER")
elif len(B) < len(A):
  print("LESS")
else:
  if A > B:
    print("GREATER")
  elif B < A:
    print("LESS")
  else:
    print("EQUAL")
  

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

a = input()
b = input()

if len(a)==len(b):
    for i in range(len(a)):
        if a[i]>b[i]:
            print("GREATER")
            quit()
        elif a[i]<b[i]:
            print("LESS")
            quit()
elif len(a)>len(b):
    print("GREATER")
else:
    print("LESS")


print("EQUAL")

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

if len(a)==len(b):
    for i in range(len(a)):
        if a[i]>b[i]:
            print("GREATER")
            quit()
        elif a[i]<b[i]:
            print("LESS")
            quit()
            
elif len(a)>len(b):
    print("GREATER")
    quit()
else:
    print("LESS")
    quit()

print("EQUAL")
Buggy code:
a = input()
b = 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=input()
b=input()

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

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

if len(a)>len(b):
    print("GREATER")
    exit()
elif len(a)<len(b):
    print("LESS")
    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:
# -*- coding: utf-8 -*-
# problem B

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

def comp(a, b):
    if a < b:
        print("LESS")
    if a < b:
        print("GREATER")
    else:
        print("EQUAL")

Fixed code:
# -*- coding: utf-8 -*-
# problem B

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

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

print(A)

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:
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')
else:print('EQUAL')
Buggy code:
A, B = input(), input()
if A > B:
    print('greater'.upper())
if A < B:
    print('less'.upper())
if A == B:
    print('equal'.upper())

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

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","LESS","EQUAL"][(a>b)+(a==b)])

Fixed code:
i=input
a=int(i())
b=int(i())
print(["GREATER","LESS","EQUAL"][(b>=a)+(a==b)])
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")
if A == B:
    print("EQUAL")
else:
    print("LESS")


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

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