qyliang/CodeNanoFix huggingface dataset:
Buggy code:
from sys import exit

S = input()

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

print('Good')


Fixed code:
from sys import exit

S = input()

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

print('Good')
Buggy code:
s = int(input())
for i in range(1, s):
    if s[i] == s[i-1]:
        print ('Bad')
        exit()

print ('Good')


Fixed code:
s = input()
for i in range(1, len(s)):
    if s[i] == s[i-1]:
        print ('Bad')
        exit()

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

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

n='X'
ans='Good'
for i in range(1,4,1):
  if n==num[i]:
    print('Bad')
    break
  else:
    n=num[i]
print(ans)

Fixed code:
num = input()
 
n='X'
ans='Good'
for i in range(4):
  if n==num[i]:
    ans='Bad'
    break
  else:
    n=num[i]
print(ans)
Buggy code:
s = int(input())
n = []
f = 0

if(s < 10):
    n.append(0)
    n.append(0)
    n.append(0)
elif(s < 100):
    n.append(0)
    n.append(0)
else:
    n.append(0)

while s > 0:
    n.append(s % 10)
    s = s // 10

n.reverse()

for i in range(1,len(n)):
    if(n[i] == n[i -1]):
        f = 1
        break

if(f == 1):
    print('Bad')
else:
    print('Good')

Fixed code:
s = int(input())
n = []
f = 0

while s > 0:
    n.append(s % 10)
    s = s // 10

n.reverse()
if(len(n) < 3):
    f = 1

for i in range(1,len(n)):
    if(n[i] == n[i -1]):
        f = 1
        break

if(f == 1):
    print('Bad')
else:
    print('Good')
Buggy code:
S = input()

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


Fixed code:
S = input()

for i in range(3):
    if S[i] == S[i + 1]:
        print('Bad')
        exit()
print('Good')
Buggy code:
x = input()
x = str(x)
f = True

for i in range(1,3)
	if(x[i-1] == x[i])
  		f = False
    	break
   
if f:
  print("Good")
else:
  print("Bad")

Fixed code:
x = input()
x = str(x)
f = True

for i in range(1,4):
  if(x[i-1] == x[i]):
    f = False
    break
   
if f:
  print("Good")
else:
  print("Bad")
Buggy code:
a=list(input())
winFlag=True
for i,it in enumerate(a[1:]):
    if(a[i-1]==it):
        winFlag=False
if winFlag==False:
    print("Good")
else:
    print("Bad")



Fixed code:
a=list(input())
winFlag=True
for i,it in enumerate(a[1:]):
    if(a[i]==it):
        winFlag=False
if winFlag==True:
    print("Good")
else:
    print("Bad")
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=list(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()

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


Fixed code:
a = input()
 
if a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:
  print('Bad') 
else:
  print('Good')
Buggy code:
S=list(input())
flag=0
b=0
for s in S:
    if b==s:
        flag=1
    b=s
if flag==0:
    print("Bad")
else:
    print("Good")

Fixed code:
S=list(input())
flag=0
b='a'
for s in S:
    if b==s:
        flag=1
    b=s
if flag==1:
    print("Bad")
else:
    print("Good")
Buggy code:
S=int(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:
N=input()
if N[0]==N[1] or N[1]==N[2] or N[2]==N[3] :
    print("Good")
else:
    print("Bad")

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

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

Fixed code:
import sys
s = input()
pre = ''
for i in s:
  if pre == i:
    print('Bad')
    sys.exit()
  pre = i
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('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:
N = list(map(int,input()))
bool = 0
for i in range(len(N) - 1):
    if N[i] != N[i+1]:
        bool = 1
if bool = 1:
    print("Good")
else:
    print("Bad")


Fixed code:
N = list(map(int,input()))
bool = 0
for i in range(len(N) - 1):
    if N[i] != N[i+1]:
        bool = 1
    else:
        print("Bad")
        exit()
if bool == 1:
    print("Good")
Buggy code:
N = str(input())
if N[0]==N[1] or N[1]==N[2] or N[2]==N[3] or N[3]==N[4]:
    print("Bad")
else:
    print("Good)

Fixed code:
N = str(input())
if N[0]==N[1] or N[1]==N[2] or N[2]==N[3]:
    print("Bad")
else:
    print("Good")
Buggy code:
S = input()
for i in range(1,5):
  if S[i] == S[i-1]:
    print('Bad')
    break
else:
  print('Good')

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

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


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

Fixed code:
S = input()
if S[0] != S[1]!= S[2] != S[3]:
  print("Good")
else:
  print("Bad")
Buggy code:
ss=input().strip()
flg=False
for i in range(1,len(ss)):
  if ss[i]==ss[i-1]:
    True
    
if flg==True:
  print("Bad")
else:
  print("Good")

Fixed code:
ss=input().strip()
flg=False
for i in range(1,len(ss)):
  if ss[i]==ss[i-1]:
    flg=True
    
if flg==True:
  print("Bad")
else:
  print("Good")
Buggy code:
n = list(map(int, list(input())))
i = -1
ans = "Bad"
for i1 in n:
    if i == i1:
        ans = "Good"
        break
    else:
        i = i1 + 0
print(ans)

Fixed code:
n = list(map(int, list(input())))
i = -1
ans = "Good"
for i1 in n:
    if i == i1:
        ans = "Bad"
        break
    else:
        i = i1 + 0
print(ans)
Buggy code:
S = list(input())
if S[0]==S[1]orS[1]==S[2]orS[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=input()
n=len(S)
ans="Good"
for i in (1,n):
  if S[i]==S[i-1]:
    ans="Bad"
    break
print(ans)

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

Fixed code:
s = input()
if all(s[i] != s[i+1] for i in range(3)):
    print('Good')
else:
    print('Bad')
Buggy code:
s = input()

for i in range(1,len(s)):
  if s[i-1] == s[i]:
    print('Bad')
    quit()
  else:
    pass

print('Yes')

Fixed code:
s = input()

for i in range(1,len(s)):
  if s[i-1] == s[i]:
    print('Bad')
    quit()
  else:
    pass

print('Good')
Buggy code:

def main():
    k = input()
    flg = False
    for i in range(len(k)):
        for j in range(i+1, len(k)):
            if k[i] == k[j]:
                flg = True
                break
    if flg: print("Bad")
    else: print("Good")

if __name__ == "__main__":
    main()

Fixed code:

def main():
    k = input()
    flg = False
    for i in range(len(k)-1):
        if k[i] == k[i+1]:
            flg = True
            break
    if flg: print("Bad")
    else: print("Good")

if __name__ == "__main__":
    main()
Buggy code:
S = input()
for i in  range(1,len(S)):
    if S[i-1] == S[i]:
        print('Bad')
    else:
        print('Good')

Fixed code:
S = input()
flg = 0
for i in range(1,len(S)):
  if S[i] == S[i-1]:
    flg = 1
if flg ==1:
  print('Bad')
else:
  print('Good')
Buggy code:
#!/usr/bin/env python3
# N = int(input())
S = input()
# N, A, B = map(int, input().split())
# A = list(map(int, input().split()))

for i in range(len(S) - 1):
    if S[i] == S[i + 1]:
        print("Bad")
        break
else:
    pirnt("Good")

Fixed code:
#!/usr/bin/env python3
# N = int(input())
S = input()
# N, A, B = map(int, input().split())
# A = list(map(int, input().split()))

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


Fixed code:
S=input()
x=str(S)
if x[0]==x[1]:
	print('Bad')
elif x[1]==x[2]:
	print('Bad')
elif x[2]==x[3]:
	print('Bad')
else:
	print('Good')
Buggy code:
S = list(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:
s=input()
ans=0
if t[0]==t[1] or t[1]==t[2] or t[2]==t[3]:
    ans='Bad'
else:
    ans='Good'
print(ans)

Fixed code:
t=input()
ans=0
if t[0]==t[1] or t[1]==t[2] or t[2]==t[3]:
    ans='Bad'
else:
    ans='Good'
print(ans)
Buggy code:
a=list(int(input))
i=0
for j in range(1,4):
  if a[i]== a[j]:
    print('Bad')
    break
  elif a[i]!= a[j] and j == 4:
    print('Good')
  i += 1
  

Fixed code:
a=list(input())
i=0
for j in range(1,4):
  if a[i]== a[j]:
    print('Bad')
    break
  elif a[i]!= a[j] and j == 3:
    print('Good')
  i += 1
Buggy code:
S = input()

result='Good'
for i in range(1, len(S)):
    if S[i-1]==S[i]:
        S = 'Bad'
        break
print(result)

Fixed code:
S = input()

result='Good'
for i in range(1, len(S)):
    if S[i-1]==S[i]:
        result = 'Bad'
        break
print(result)
Buggy code:
num=input()
c=False
for i in range(1,len(num)+1):
  if num[i]==num[i-1]:
    c=True
    
if c==True:
  print("Bad")
else:
  print("Good")

Fixed code:
num=input()
c=False
for i in range(1,len(num)):
  if num[i]==num[i-1]:
    c=True
    
if c==True:
  print("Bad")
else:
  print("Good")
Buggy code:
import sys
row = sys.stdin.readline
 
ls = list(row())
s = sum([1 for i in range(1, len(ls) + 1) if ls[i-1] == ls[i]])
print("Good" if s == len(ls) else "Bad")


Fixed code:
import sys
row = sys.stdin.readline
 
ls = list(row())
s = sum([1 for i in range(1, len(ls)) if ls[i-1] != ls[i]])
print("Good" if s+1 == len(ls) else "Bad")
Buggy code:
a = input()
if (a[0]==a[1]) or (a[1]==a[2]) or (a[2]==a[3]):
  print("Bad")
else :
  print(Good)

Fixed code:
a = 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()
p = a
for s in S:
  if p == s:
    p = a
    break
  else:
    p = s
print("Bad" if p == a else "Good")

Fixed code:
S=input()
p = 'a'
for s in S:
  if p == s:
    p = 'a'
    break
  else:
    p = s
print("Bad" if p == 'a' else "Good")
Buggy code:
number = input()
s = number[0]

for i in range(1,4):
  if s == number[i]:
    print("Bad.")
    exit()
  
  s = number[i]
  
print("Good.")
    

Fixed code:
number = input()
s = number[0]

for i in range(1,4):
  if s == number[i]:
    print("Bad")
    exit()
  
  s = number[i]
  
print("Good")
Buggy code:
s=input()

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

Fixed code:
s=input()

for i in range(3):
        if s[i] == s[i+1]:
                print("Bad")
                exit()
print("Good")
Buggy code:
s = list(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()
a = []
a = list(s)

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

Fixed code:
s = input()
for i in range(1,len(s)):
    if s[i] == s[i-1]:
        print('Bad')
        break
else:
    print('Good')
Buggy code:
s = list(input())
print("Bad" if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] 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 = input()
num = 0
for i in range(len(s)-1):
        print(i)
        if s[i] == s[i+1]:
                num = 1
print("Good") if num == 0 else print("Bad")

Fixed code:
s = input()
num = 0
for i in range(len(s)-1):
        if s[i] == s[i+1]:
                num = 1
print("Good") if num == 0 else print("Bad")
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]):
    print("Bad")
elif(s[1]==s[2]):
    print("Bad")
elif(s[2]==s[3]):
    print("Bad")
elif(s[3]==s[4]):
    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:
password = list(input())
for i in range(3):
    if password[i] == password[i+1]:
        print("Bad")
        break
    else:
        print("Good")
        break

Fixed code:
password = list(input())
for i in range(3):
    if password[i] == password[i+1]:
        print("Bad")
        break
else:
    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 = input()
if s[0] == s[1] or s[1]==s[2] or s[2]==s[3]:
  print('Bad')
else:
  print('Good')
Buggy code:
import re

security_code = input()
regex = r'(.)\1'
result = re.match(regex, security_code)

if result is None:
  print('Good')
else:
  print('Bad')

Fixed code:
import re

security_code = input()
regex = r'.*(.)\1.*'
result = re.match(regex, security_code)

if result is None:
  print('Good')
else:
  print('Bad')
Buggy code:
S = input()
before = S[0]
for i in range(1,len(S)):
    if before == S[i]:
        print('Bad')
        exit()    

    before = S[i]
print('Yes')

Fixed code:
S = input()
before = S[0]
for i in range(1,len(S)):
    if before == S[i]:
        print('Bad')
        exit()    

    before = S[i]
print('Good')
Buggy code:
S=input()
S=list(S)
for i in range(len(S)-1):
  if S[i] == S[i+1]:
	print("Bad")
  else:
    print("Good")

Fixed code:
S = input()
for i in range(len(S) - 1):
	if S[i] == S[i + 1]:
		print('Bad')
		break
else:
	print('Good')
Buggy code:
p=list(input())
f=0
for i in range(len(l)-1):
  if l[i]==l[i+1]:
    f+=1
    break
if f>0:
  print("Bad")
else:
  print("Good")
  

Fixed code:
p=list(input())
f=0
for i in range(len(p)-1):
  if p[i]==p[i+1]:
    f+=1
    break
if f>0:
  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]:
  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()
b = 0

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()
b = 0

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=str(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()
for i in range(1, len(a)):
    if a[i] == a[i-1]:
        print("Bad")
print("Good")

Fixed code:
a = input()
for i in range(1, len(a)):
    if a[i] == a[i-1]:
        print("Bad")
        exit()
print("Good")
Buggy code:
key_no = input()
ret = 'Good'
for i in range(len(key_no)-1):
  if key_no[i] == key_no[i+1]:
    ret = 'Bad'
  	break
print(ret)

Fixed code:
key_no = input()
ret = 'Good'
for i in range(len(key_no)-1):
  if key_no[i] == key_no[i+1]:
    ret = 'Bad'
    break  
print(ret)
Buggy code:
s = 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 = 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()
flg = True
for i in range(len(s)-1):
    s[i] == s[i+1]
    flg = False
    break
print('Good') if flg else print('Bad')

Fixed code:
s = input()
flg = True
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        flg = False
        break
print('Good') if flg else print('Bad')
Buggy code:
s=int(input())
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
    print('Good')
else:
    print('Bad')

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


Fixed code:
S=list(input())
if S[0]!=S[1] and S[1]!=S[2] and S[2]!=S[3]:
    print("Good")
else:
    print("Bad")
Buggy code:
S = input()

answer = "Good"
prev_s = s[0]
for s in S[1:]:
  if prev_s == s:
    answer = "Bad"
    break
  prev_s = s

print(answer)

Fixed code:
S = input()
 
answer = "Good"
prev_s = S[0]
for s in S[1:]:
  if prev_s == s:
    answer = "Bad"
    break
  prev_s = s
 
print(answer)
Buggy code:
a = input()

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

Fixed code:
a = input()

def check():
  for i in range(3):
    if a[i] == a[i+1]:
      print("Bad")
      return 
  print("Good")

check()
Buggy code:
S=input()
tmp=10
ans='Yes'
for s in S:
    if s == tmp: ans='Bad'; break
    else: tmp=s
print(ans)

Fixed code:
S=input()
tmp=10
ans='Good'
for s in S:
    if s == tmp: ans='Bad'; break
    else: tmp=s
print(ans)
Buggy code:
char_list = list(str)
for i in range(4):
    
    if i == 3:
        print('Good')
        break
    
    if char_list[i] == char_list[i+1] and i < 3:
        print('Bad')
        break

Fixed code:
char_list = list(input())
for i in range(4):
    
    if i == 3:
        print('Good')
        break
    
    if char_list[i] == char_list[i+1] and i < 3:
        print('Bad')
        break
Buggy code:
def main():
  inp = input()
  before =None
  for a in inp:
    if before is None:
      before = a
      continue
    if before == a:
      print("Bad")
      return
    before = a
  print("Good")

Fixed code:
def main():
  inp = input()
  before =None
  for a in inp:
    if before is None:
      before = a
      continue
    if before == a:
      print("Bad")
      return
    before = a
  print("Good")

main()
Buggy code:
s=list(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(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()

ans = 'Nad'
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        ans = 'Good'
        break
print(ans)


Fixed code:
s = input()

ans = 'Good'
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        ans = 'Bad'
        break
print(ans)
Buggy code:
import io
import sys


def IN_S():
  return input()


def IN_I():
  return int(input())


def IN_L_I():
  return list(map(int, input().split()))


def IN_L_S():
  return list(map(str, input().split()))


def STR_SPLIT(s, n):
  for l in range(0, len(s), n):
    yield s[0 + l:n + l]


def T_IN():
  global test_str
  sys.stdin = io.StringIO(test_str[1:-1])


test_str = '''
1234
'''


def MAIN():
  T_IN()
  A()


def A():
  s = IN_S()

  p = ""
  for i in s:
    if len(p) != 0:
      if p == i:
        print("Bad")
        exit()
    p = i

  print("Good")


  return None
 

def B():
  return None


def C():
  return None


MAIN()


Fixed code:
import io
import sys


def IN_S():
  return input()


def IN_I():
  return int(input())


def IN_L_I():
  return list(map(int, input().split()))


def IN_L_S():
  return list(map(str, input().split()))


def STR_SPLIT(s, n):
  for l in range(0, len(s), n):
    yield s[0 + l:n + l]


def T_IN():
  global test_str
  sys.stdin = io.StringIO(test_str[1:-1])


test_str = '''
1234
'''


def MAIN():
  # T_IN()
  A()


def A():
  s = IN_S()

  p = ""
  for i in s:
    if len(p) != 0:
      if p == i:
        print("Bad")
        exit()
    p = i

  print("Good")


  return None
 

def B():
  return None


def C():
  return None


MAIN()
Buggy code:
S = input()

s = [int(S[i])-int(S[i+1]) for i in range(S)]

print("Good" if 0 in s else "Bad")

Fixed code:
S = input()

s = [int(S[i])-int(S[i+1]) for i in range(len(S)-1)]

print("Good" if 0 not in s else "Bad")
Buggy code:

s = str(input().split())
i = 0
while True:
    if s[i] == s[i + 1]:
        print_ans = 'Bad'
        break
    else:
        print_ans = 'Good'
    i += 1
    if i == 3:
        break
    
print(print_ans)

Fixed code:
s = str(input().split())
i = 0 + 2
while True:
    if s[i] == s[i + 1]:
        print_ans = 'Bad'
        break
    else:
        print_ans = 'Good'
    i += 1
    if i == 3 + 2:
        break
    
print(print_ans)
Buggy code:
s=sorted(input())
for i in range(3):
    if s[i]==s[i+1]:
        print("Bad")
        exit()
print("Good")


Fixed code:
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        print("Bad")
        exit()
print("Good")
Buggy code:
s = input()
for i in range(3):
  if s[i] == s[i+1]:
    print("bad")
    exit()
print("Good")

Fixed code:
s = input()
for i in range(3):
  if s[i] == s[i+1]:
    print("Bad")
    exit()
print("Good")
Buggy code:
s = input()

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


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

lst_A = list(input())

ans = "Bad"

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


Fixed code:
lst_A = list(input())
 
ans = "Bad"
 
for i in range(3):
	if lst_A[i] == lst_A[i + 1]:
  		break
else:
  ans = "Good"
  
print(ans)
Buggy code:
S = list(input())
s = set(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 = int(input())

for i in range(1,4):
  if s[i-1]==s[i]:
    print("Bad")
    exit()
print("Good")
  

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

prev = S[0]
ans = 'Good'

print(S)
for i in range(1, len(S)):
  print(i)
  if S[i] == prev:
    ans = 'Bad'
  
  prev = S[i]
  
print(ans)

Fixed code:
S = list(input())

prev = S[0]
ans = 'Good'

for i in range(1, len(S)):
  if S[i] == prev:
    ans = 'Bad'
  
  prev = S[i]
  
print(ans)
Buggy code:
s = [x for x in input()]
ans = 'Good'
for i in range(3):
  if s[i] == s[i+1]:
    ans = 'Bat'
    break
print(ans)



Fixed code:
s = [x for x in input()]
ans = 'Good'
for i in range(3):
  if s[i] == s[i+1]:
    ans = 'Bad'
    break
print(ans)
Buggy code:
import sys
from io import StringIO
import unittest
def resolve():
    S = input()
    a = 0
    for i in range(len(S) - 1):
        if (S[i] == S[i + 1]):
            a = 1
    if (a == 0):
        print("Good")
    else:
        print("Bad")
resoluve()

Fixed code:
import sys
from io import StringIO
import unittest
def resolve():
    S = input()
    a = 0
    for i in range(len(S) - 1):
        if (S[i] == S[i + 1]):
            a = 1
    if (a == 0):
        print("Good")
    else:
        print("Bad")
resolve()