qyliang/CodeNanoFix huggingface dataset:
Buggy code:
S=input()
if S[0]==S[1]:
  print('bad')
elif S[1]==S[2]:
  print('bad')
elif S[2]==S[3]:
  print('Bad')
else:
  print('Good')


Fixed code:
S=input()
if S[0]==S[1]:
  print('Bad')
elif S[1]==S[2]:
  print('Bad')
elif S[2]==S[3]:
  print('Bad')
else:
  print('Good')
Buggy code:
import sys
i = int(input())
i = list(i)
for k in range(3):
  if i[k] == i[k+1]:
    print("Bad")
    sys.exit()
print("Good")

Fixed code:
import sys
i = input()
i = list(map(int,list(i)))
for k in range(3):
  if i[k] == i[k+1]:
    print("Bad")
    sys.exit()
print("Good")
Buggy code:
ss = input()

for i in range(3):
  if ss[i] = ss[i+1]:
    print("Good")
    break
else:
  print("Bad")

Fixed code:
ss = input()

for i in range(3):
  if ss[i] == ss[i+1]:
    print("Bad")
    break
else:
  print("Good")
Buggy code:
S = int(input())
for i in range(1, 4):
  if A[i] == A[i-1]:
    print("Bad")
    exit()
print("Good")

Fixed code:
S = input()
for i in range(1, 4):
  if S[i] == S[i-1]:
    print("Bad")
    exit()
print("Good")
Buggy code:
s = input()
if s[0]==s[1] or s[1]==s[2] or s[2]==-s[3]:
    print("Good")
else:
    print("Bad")

Fixed code:
s = list(input())
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
  print("Bad")
else:
  print("Good")
Buggy code:
S=str(input())
count = 0
for i in range(4):
    count+=1
    if S[i:i+1]==S[i+1:i+2]:
        print('Bad')
        break
    elif count == 3:
        print('Yes')

Fixed code:
S=str(input())
count = 0
for i in range(4):
    count+=1
    if S[i:i+1]==S[i+1:i+2]:
        print('Bad')
        break
    elif count == 3:
        print('Good')
Buggy code:
flag = True
S = input()
for i in range(1,len(S)):
  if S[i] == S[i-1]:
    flag = False

if flag:
  print("Good"):
else:
  print("Bad")
      
      

Fixed code:
flag = True
S = input()
for i in range(1,len(S)):
  if S[i] == S[i-1]:
    flag = False

if flag:
  print("Good")
else:
  print("Bad")
Buggy code:
s = set(input())
ans = True
for i in range(3):
    ans = ans and (s[i] != s[i+1])
if ans: print('Good')
else: print('Bad')

Fixed code:
s = input()
ans = True
for i in range(3):
    ans = ans and (s[i] != s[i+1])
if ans: print('Good')
else: print('Bad')
Buggy code:
import re
S = input()

pat = r"(\d)\1"

res = re.search(pat, S)

print(res)

if res:
    print("Bad")
else:
    print("Good")

Fixed code:
import re
S = input()

pat = r"(\d)\1"

res = re.search(pat, S)


if res:
    print("Bad")
else:
    print("Good")
Buggy code:
s = input('Security Code: ')

flg = False
for i in range(3):
  flg = flg or (int(s[i:i+2]) % 11) == 0

if flg:
  print('Bad')
else:
  print('Good')

Fixed code:
s = input()

flg = False
for i in range(3):
  flg = flg or (int(s[i:i+2]) % 11) == 0

if flg:
  print('Bad')
else:
  print('Good')
Buggy code:
S=list(int(input()))
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3] or S[3]==S[4]:
  print("Bad")
else:
  print("Good")

Fixed code:
S=list(input())

if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
  print('Bad')
else:
  print('Good')
Buggy code:
line=list(input())
print(line)
for i in range(3):
    if line[i]==line[i+1]:
        print('Bad')
        break
    if i==2:
        print('Good')


Fixed code:
line=list(input())

for i in range(3):
    if line[i]==line[i+1]:
        print('Bad')
        break
    if i==2:
        print('Good')
Buggy code:
S = input()
for i in range(1,4):
  if S[i-1]==S[i]:
    print("Bad")
    continue
  elif i==3:
    print("Good")

Fixed code:
S = input()
for i in range(1,4):
  if S[i-1]==S[i]:
    print("Bad")
    break
  elif i==3:
    print("Good")
Buggy code:
matchNums=input()

flg=False
for i in range(len(matchNums)-1):
    if matchNums[i] == matchNums[i+1]:
        flg = True
if flg:
    print("Bad")
else
    print("Good")

Fixed code:
matchNums=input()

flg=False
for i in range(len(matchNums)-1):
    if matchNums[i] == matchNums[i+1]:
        flg = True
if flg:
    print("Bad")
else:
    print("Good")
Buggy code:
cord = list(input())
cord_len = len(cord)
for i in range(cord - 1):
    if cord[i] == cord[i + 1]:
        print("Bad")
        break
else:
    print("Good")


Fixed code:
cord = list(input())
cord_len = len(cord)
for i in range(cord_len - 1):
    if cord[i] == cord[i + 1]:
        print("Bad")
        break
else:
    print("Good")
Buggy code:
S = str(input())

def judge():
    now = None
    for i in S:
        if now == i:
            print("Bad")
            return
        now = i
    print("good")

judge()

Fixed code:
S = str(input())

def judge():
    now = None
    for i in S:
        if now == i:
            print("Bad")
            return
        now = i
    print("Good")

judge()
Buggy code:
s=input()
ans = 'Good'
last = s[0]
for i in s[1:]:
    if last==i:
        ans = 'Bad'
        reak
    last = i
print(ans)

Fixed code:
s=input()
ans = 'Good'
last = s[0]
for i in s[1:]:
    if last==i:
        ans = 'Bad'
        break
    last = i
print(ans)
Buggy code:
S = list(map(str, input()))

if(S[0]==S[1] or S[1]==S[2] or S[2]==S[3]):
  print("Bad")
else:
  print(Good)

Fixed code:
S = list(map(str, input()))
 
if(S[0]==S[1] or S[1]==S[2] or S[2]==S[3]):
  print("Bad")
else:
  print("Good")
Buggy code:
code = input()
ans = "Bad"
if code[0] == code[1] or code[1] == code[2] or code[2] == code[3] or code[3] == code[4]:
    ans = "Good"
print(ans)

Fixed code:
code = input()
ans = "Good"
if code[0] == code[1] or code[1] == code[2] or code[2] == code[3]:
    ans = "Bad"
print(ans)
Buggy code:
S = input()

for i in range(3):
    if S[i] == S[i+1]:
        print('Bad')
        break
else:
    print('Yes')


Fixed code:
S = input()

for i in range(3):
    if S[i] == S[i+1]:
        print('Bad')
        break
else:
    print('Good')
Buggy code:
s = list(str(input()))

if s[0] == s[1] == s[2] == s[3]:
    print('Bad')
else:
    print('Good')


Fixed code:
s=list(input())
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
    print("Bad")
else:
    print("Good")
Buggy code:
s=str(input())
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
	print('Bad')
    else:
    	print('Good')

Fixed code:
s=list(input())
if (s[0]==s[1] or s[1]==s[2] or s[2]==s[3]):
    print("Bad")
else:print("Good")
Buggy code:
# coding: utf-8
# Your code here!

def main():
    S = list(input())
    S.append("_")
    for i in range(len(S)-1):
        print(i)
        if S[i] == S[i+1]:
            return "Bad"
    return "Good"
print(main())

Fixed code:
# coding: utf-8
# Your code here!

def main():
    S = list(input())
    S.append("_")
    for i in range(len(S)-1):
        #print(i)
        if S[i] == S[i+1]:
            return "Bad"
    return "Good"
print(main())
Buggy code:
S=[input()]

if S[0]==S[1]:
  print('Bad')
elif S[1]==S[2]:
  print('Bad')
elif S[2]==S[3]:
  print('Bad')
else:
  print('Good')
  



Fixed code:
S = list(input())

if S[0] == S[1]:
  print('Bad')
elif S[1] == S[2]:
  print('Bad')
elif S[2] == S[3]:
  print('Bad')
else:
  print('Good')
Buggy code:
S = str(input())
s = list(S)

if s[0] == s[1] or s[0] == s[2] or s[0] == s[3]:
    print("Bad")
elif s[1] == s[2] or s[1] == s[3]:
        print("Bad")
elif s[2] == s[3]:
        print("Bad")
else:
        print("Good")


Fixed code:
S = str(input())
s = list(S)

if s[0] == s[1]:
    print("Bad")
elif s[1] == s[2]:
        print("Bad")
elif s[2] == s[3]:
        print("Bad")
else:
        print("Good")
Buggy code:
lock_num = list(input())
#lock_num = [int(x) for x in lock_num]
tag = 0
for i in range(3):
  if int(lock_num[i]) == int(lock_num[i+1]):
    tag = 1
if tag == 0:
  print("Good")
else tag ==1:
  print("Bad")

Fixed code:
lock_num = input()
#lock_num = [int(x) for x in lock_num]
tag = 0
for i in range(3):
  if int(lock_num[i]) == int(lock_num[i+1]):
    tag = 1
    break
if tag == 0:
  print("Good")
else:
  print("Bad")
Buggy code:
p = input().split()

for i in range(3):
  if p[i] == p[i + 1]:
    print("Bad")
    quit()
print("Good")

Fixed code:
p = input()

for i in range(3):
  if p[i] == p[i + 1]:
    print("Bad")
    quit()
print("Good")
Buggy code:
S = input()

for i in range(3):
    if S[i] == S[i + 1]:
        print('Bad')
    else:
        print('Good')


Fixed code:
S = input()
for i in range(3):
  if S[i] == S[i+1]:
    print("Bad")
    quit()
print("Good")
Buggy code:
S=list(input())
N=len(S)
flg=0
for i in range(S-1):
  if S[i]==S[i+1]:
    print("Bad")
    break
if flg:
  print("Good")

Fixed code:
S=list(input())
N=len(S)
flg=1
for i in range(N-1):
  if S[i]==S[i+1]:
    print("Bad")
    flg=0
    break
if flg:
  print("Good")
Buggy code:
code = str(input())

for i, s in enumerate(code):
  if i != 0:
  	if s == pre:
      print("Bad")
      exit()
  pre = s
  
print("Good")


Fixed code:
code = str(input())

for i, s in enumerate(code):
    if i != 0:
        if s == pre:
            print("Bad")
            exit()
    pre = s

print("Good")
Buggy code:
S = input()

if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  r = 'Bad'
else:
  r - 'Good'

print(r)

Fixed code:
S = input()
 
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  r = 'Bad'
else:
  r = 'Good'
 
print(r)
Buggy code:
S = list(input())
print(S)
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
    print('Bad')
else:
    print('Good')

Fixed code:
s = list(input())

if s[0] == s[1] or s[2] == s [1] or s[2] == s[3]:
    print("Bad")
else:
    print("Good")
Buggy code:
x=input()
def goodorbad(n):
    for i in range (0,3):
        if n[i]==n[i+1]:
            return "Good"
    return "Bad"
goodorbad(x)

Fixed code:
x=input()
def goodorbad(n):
    for i in range (0,3):
        if n[i]==n[i+1]:
            return "Bad\n"
    return "Good\n"
print (goodorbad(x))
Buggy code:
S = input()
for i in range(3):
    if S[i] == S[i+1]:
        print('Bad')
    else:
        print('Good')

Fixed code:
S = input()
for i in range(3):
    if S[i] == S[i+1]:
        print('Bad')
        exit()
print('Good')
Buggy code:
def solve():
    s = input()
    for i in range(3):
        print(s[i],s[i+1])
        if s[i]==s[i+1]:
            return 'Bad'
    else:
        return 'Good'

if __name__ == '__main__':
    print(solve())

Fixed code:
def solve():
    s = input()
    for i in range(3):
        if s[i]==s[i+1]:
            return 'Bad'
    else:
        return 'Good'

if __name__ == '__main__':
    print(solve())
Buggy code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

s=input()
count=0
for i in range(3):
    #print(s[i:i+1])
    if s[i:i+1]==s[i+1:i+2]:
        count+=1
if count>0:
    print("bad")
else:
    print("good")


Fixed code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

s=input()
count=0
for i in range(3):
    #print(s[i:i+1])
    if s[i:i+1]==s[i+1:i+2]:
        count+=1
if count>0:
    print("Bad")
else:
    print("Good")
Buggy code:
s = input()
pas = sorted(s)

if pas[0] == pas[1] or pas[1] == pas[2] or pas[2] == pas[3]:
    print('Bad')
else:
    print('Good')




Fixed code:
s = input()

if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
    print('Bad')
else:
    print('Good')
Buggy code:
S = int(input())

S = str(S)
list_S = list(S)
list_S = [int(s) for s in list_S]

a = list_S[0]
hantei = 1
for i in list_S[1:]:
    if a == i:
        hantei = 0
    a = i
if hantei==0:
    print("Bad")
else:
    print("Good")



Fixed code:
S = input()

list_S = list(S)
list_S = [int(s) for s in list_S]

a = list_S[0]
hantei = 1
for i in list_S[1:]:
    if a == i:
        hantei = 0
    a = i
if hantei==0:
    print("Bad")
else:
    print("Good")
Buggy code:
x = input().rstrip().split("")
count = 0
temp = ""
how = True
for i in x:
  if temp == i:
    how=False
  temp = i

if how:
  print("Good")
else:
  print("Bad")
  

Fixed code:
x = input().rstrip()
count = 0
temp = ""
how = True
for i in x:
  if temp == i:
    how=False
  temp = i

if how:
  print("Good")
else:
  print("Bad")
Buggy code:
S = str(input())
cnt = 0
for i in range(len(S)-1):
    if S[i] == S[i+1]:
        print("Bad")
        exit()
print("Yes")

Fixed code:
S = str(input())
cnt = 0
for i in range(len(S)-1):
    if S[i] == S[i+1]:
        print("Bad")
        exit()
print("Good")
Buggy code:
S=int(input())
if S[0]==S[1] or S[1]==S[2} or S[2]==S[3]:
  print("Bad")
else:
  print("Good")

Fixed code:
S = input()

if (S[0]==S[1] or S[1] == S[2] or S[2] == S[3]) :
    print("Bad")
else :
    print("Good")
Buggy code:
a = input()
flag = False

for i in range(0, 3):
    if a[i] == a[i+1]:
        print("Bad")
        flag = True

if not flag:
    print("Good")


Fixed code:
a = input()
flag = False

for i in range(0, 3):
    if a[i] == a[i+1]:
        print("Bad")
        flag = True
        break

if not flag:
    print("Good")
Buggy code:
output = []
 
for (i, x) in enumerate(S):
    if i == 0:
        pre = x
    else:
        if pre == x:
            output = "Bad"
            print(output)
        pre = x
            
if len(output) > 0:
    print(output)
else:
    output = "Good"
    print(output)

Fixed code:
output = []
 
for (i, x) in enumerate(input()):
    if i == 0:
        pre = x
    else:
        if pre == x:
            output = "Bad"
        pre = x
            
if len(output) > 0:
    print(output)
else:
    output = "Good"
    print(output)
Buggy code:
x = input()
f = 0
for i in range(len(x)-1):
  if x[i] == x[i+1]:
    print("Bad")
    f = 1
if f == 0:
    print("Good")

Fixed code:
x = input()
f = 0
for i in range(len(x)-1):
  if x[i] == x[i+1]:
    print("Bad")
    f = 1
    break
if f == 0:
    print("Good")
Buggy code:
S = str(input())
k = 1
for i in range(3):
    if S[i] == S[i+1]:
        print("bad")
        k = 0
        break
    else:
        continue
if k == 1:
    print("Good")

Fixed code:
S = str(input())
k = 1
for i in range(3):
    if S[i] == S[i+1]:
        print("Bad")
        k = 0
        break
    else:
        continue
if k == 1:
    print("Good")
Buggy code:
def main():
 s = sorted(input())
 if s[0] != s[1] and s[1] != s[2] and s[2] != s[3]:
     print('Good')
 else:
     print('Bad')
main()

Fixed code:
def main():
 s = input()
 if s[0] != s[1] and s[1] != s[2] and s[2] != s[3]:
     print('Good')
 else:
     print('Bad')
main()
Buggy code:
pi=""
j="Good"
for i in input():
  if pi == i:
    j="Bad"
print(j)

Fixed code:
pi=""
j="Good"
for i in input():
  if pi == i:
    j="Bad"
  pi=i
print(j)
Buggy code:
s = input()

if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] or s[3] == s[4]
    print("Bad")
else:
    print("Good")

Fixed code:
s=str(input())
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
    print("Bad")
else:print("Good")
Buggy code:

s = input()

t= "Bad";
for i in range(0,len(s)):
    if s.find(s[i],i+1,len(s)-1) == i+1:
        t="Good"
        
print(t)



Fixed code:

s = input()
t= "Good"

for i in range(0,len(s)):
    if s.find(s[i],i+1) == i+1:
        t="Bad"
print(t)
Buggy code:
S = input()

for i in range(len(S)-1):
    if S[i] == S[i+1]:
        print('Bad')
        exit()
print('Yes')

Fixed code:
S = input()

for i in range(len(S)-1):
    if S[i] == S[i+1]:
        print('Bad')
        exit()
print('Good')
Buggy code:
def main():

    s = input()
    s = str(s)
    flag = 0

    if(s[0] == s[1]):
        print('Bad')
        flag = 1
    
    if(s[1] == s[2]):
        print('Bad')
        flag = 1
    
    if(s[2] == s[3]):
        print('Bad')
        flag = 1
    
    if(flag == 0):
        print('Good')

if __name__ == '__main__':
    main()



Fixed code:
def main():

    s = input()
    s = str(s)
    flag = 0

    if(s[0] == s[1]):
        print('Bad')
        flag = 1
    
    if(flag == 0 and s[1] == s[2]):
        print('Bad')
        flag = 1
    
    if(flag == 0 and s[2] == s[3]):
        print('Bad')
        flag = 1
    
    if(flag == 0):
        print('Good')

if __name__ == '__main__':
    main()
Buggy code:
S = input()
s = list(S)
p = 1
for i in range(3):
    if s[i] == s[i+1]:
        p = 0
        print('Bad')
if p == 1:
    print('Good')



Fixed code:
S = input()
s = list(S)
p = 1
for i in range(3):
    if s[i] == s[i+1]:
        p = 0
        print('Bad')
        break
if p == 1:
    print('Good')
Buggy code:
S = int(input())
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
    print('Bad')
else:
    print('Good')

Fixed code:
S = str(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')
else:
    print('Good')
Buggy code:
S = int(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  print('Bad')
else:
  print('Good')

Fixed code:
S = input()
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print("Bad")
else:
    print("Good")
Buggy code:
s=input()
if s[0]==s[1] or s[1]==s[2] or s[2]=-s[3]:
  print("Bad")
else:
  print("Good")

Fixed code:
s = input()
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
	print ("Bad")
else:
	print ("Good")
Buggy code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


s = list(input())

if a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:
    print("Bad")
else:
    print("Good")

Fixed code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


a = list(input())

if a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:
    print("Bad")
else:
    print("Good")
Buggy code:
s =input()
print("Bad" if any(S[i]==S[i+1] for i in range(3)) else "Good")

Fixed code:
s = input()

print("Bad" if any(s[i]==s[i+1] for i in range(3)) else "Good")
Buggy code:
s=list(input())
for i in range(0,len(s)-1):
    if s[i]==s[i+1]:
        print('Bad')
    else:
        print('Good')


Fixed code:
s=list(input())
for i in range(0,len(s)-1):
    if s[i]==s[i+1]:
        print('Bad')
        break
else:
    print('Good')
Buggy code:
s=input()

for i in range(3):
    if s[i]==s[i+1]:
        print("Bad")
    else:
        if i==2:
            print("Good")
        

Fixed code:
s=input()

for i in range(3):
    if s[i]==s[i+1]:
        print("Bad")
        break
    else:
        if i==2:
            print("Good")
Buggy code:
# coding: utf-8
# Your code here!

s = input()

t = ""
f = True

for i in s:
    if t == i:
        f = False
        break
    t = i

print("Good" if t else "Bad")

Fixed code:
# coding: utf-8
# Your code here!

s = input()

t = ""
f = True

for i in s:
    if t == i:
        f = False
        break
    t = i

print("Good" if f else "Bad")
Buggy code:
S=input()
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3] or S[3]==S[4]:
  print('Bad')
else:
  print('Good')

Fixed code:
S = input()

if S[0]==S[1] or S[1] == S[2]  or  S[2] == S[3]:
    print ('Bad')
else:
    print ('Good')
Buggy code:
S = int(input())
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')

else:
    print('Good')

Fixed code:
S = input()
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  print("Bad")
else:
  print("Good")
Buggy code:
s=list(map(int, input()))
ans="Good"
for i in range(len(s)):
  if i == 0:
    continue
  if s[i] == s[i-1]:
    ans = "Bad"

Fixed code:
s=list(map(int, input()))
ans="Good"
for i in range(len(s)):
  if i == 0:
    continue
  if s[i] == s[i-1]:
    ans = "Bad"
    
print(ans)
Buggy code:
S = list(int(v) for v in input())

if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')
else:
    print('Yes')


Fixed code:
S = list(int(v) for v in input())

if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')
else:
    print('Good')
Buggy code:
S = list(input())
print(S)

if (S[0] == S[1] or S[1] == S[2] or S[2] == S[3]):
    print("Bad")
else:
    print("Good")

Fixed code:
S = list(input())

if (S[0] == S[1] or S[1] == S[2] or S[2] == S[3]):
    print("Bad")
else:
    print("Good")
Buggy code:
S = list( input() )
for i in range( len(S) - 1 ) : 
    if S[i]==S[i+1] : 
       print( "Good" )
    break
else : 
  print( "Bad" )

Fixed code:
S = list( input() )
for i in range( len(S) - 1 ) : 
    if S[i] == S[i+1] : 
       print( "Bad" )
       break
else : 
    print( "Good" )
Buggy code:
s = list(map(int, list(input())))
for i in range(len(s) - 1):
    if s[i] == s[i + 1]:
        print('Bad')
    print('Good')


Fixed code:
s = list(map(int, list(input())))
for i in range(len(s) - 1):
    if s[i] == s[i + 1]:
        print('Bad')
        break
else:
    print('Good')
Buggy code:
s = input()
if n[0]==n[1] or n[1]==n[2] or n[2]==n[3]:
	print('Bad')
else:
	print('Good')

Fixed code:
s = input()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
	print('Bad')
else:
	print('Good')
Buggy code:
s=input()

cnt=0

for i in range(1,len(s):
    if s[i]==s[i-1]:
        cnt += 1

if cnt > 1:
    print("Bad")
else:
    print("Good")

Fixed code:
s=input()

cnt=0

for i in range(1,len(s)):
    if s[i]==s[i-1]:
        cnt += 1

if cnt >= 1:
    print("Bad")
else:
    print("Good")
Buggy code:
#coding:utf-8
import sys

L = list(input())
for i in range(len(L)):
    for j in range(len(L)):
        if (i != j) and L[i] == L[j]:
            print("Bad")
            sys.exit()
print("Good")


Fixed code:
#coding:utf-8
import sys

L = list(input())
for i in range(len(L)):
    for j in range(len(L)):
        if (i != j) and (abs(i-j) == 1) and (L[i] == L[j]):
            print("Bad")
            sys.exit()
print("Good")
Buggy code:
n=list(input())
f=0
for i in range(len(n)):
    if(n[i]==n[i+1]):
    	f=1
if(f==1):
	print("Bad")
else:
	print("Good")

Fixed code:
n=list(input())
f=0
for i in range(len(n)-1):
    if(n[i]==n[i+1]):
        f=1
if(f==1):
    print("Bad")
else:
    print("Good")
Buggy code:
a = input()
if a[0]!=a[1] and a[1]!=a[2] and a[2]!=a[3] and a[3]!=a[4]:
    print("Good")
else:
    print("Bad")

Fixed code:
a = input()
if a[0]!=a[1] and a[1]!=a[2] and a[2]!=a[3] :
    print("Good")
else:
    print("Bad")
Buggy code:
s = str(input())
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
    print('Bad')
else:
    print('Yes')

Fixed code:
s=str(input())
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
    print('Bad')
else:
    print('Good')
Buggy code:
s = input().split()
if s[0]==s[1] or s[1]==s[2] or s[2] == s[3]:
    print("Bad")
else:
    print("Good")

Fixed code:
s = input()
if (s[0]==s[1]) or (s[1] == s[2]) or (s[2] == s[3]):
  print("Bad")
else:
  print("Good")
Buggy code:
s = input()
count = 0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        count = 1
        break
if count == 1:
    print('Bad')
else:
    print('Yes')

Fixed code:
s = input()
count = 0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        count = 1
        break
if count == 1:
    print('Bad')
else:
    print('Good')
Buggy code:
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        ans=1
print("Bad" if ans==1 else "Good")


Fixed code:
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        ans=1
        break
    else:
        ans=0
print("Bad" if ans==1 else "Good")
Buggy code:
import math

def main():
    S = input()
    flag = 1
    for i in range(1, len(S)):
       if S[i] == S[i-1]:
           print("Bad")
           flag=0
       else:
           pass
    if flag:
        print("Good")

if __name__ == '__main__':
    main()


Fixed code:
import math

def main():
    S = input()
    flag = 1
    for i in range(1, len(S)):
       if S[i] == S[i-1]:
           print("Bad")
           flag=0
           break
       else:
           pass
    if flag:
        print("Good")

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

def check(S):
    before = ''
    for c in S:
        if before == c:
            print('Bad')
            return
        before = c

    print("good")
    return

if __name__ == "__main__":
    S = input()
    check(S)



Fixed code:

def check(S):
    before = ''
    for c in S:
        if before == c:
            print('Bad')
            return
        before = c

    print("Good")
    return

if __name__ == "__main__":
    S = input()
    check(S)
Buggy code:
s = input()
if(s[0] == s[1] or s[1] == s[2] || s[2] == s[3]):print("Bad")
else: print("Good")

Fixed code:
s = input()
if(s[0] == s[1] or s[1] == s[2] or s[2] == s[3]):print("Bad")
else: print("Good")
Buggy code:
S = int(input())

result = 0
for i in range(len(S) - 1):
    if S[i] == S[i+1]:
        result += 1

if result == 0:
    print("Good")
else:
    print("Bad")
 

Fixed code:
S = input()

result = 0
for i in range(len(S) - 1):
    if S[i] == S[i+1]:
        result += 1

if result == 0:
    print("Good")
else:
    print("Bad")