Problem:


Score : 100 points

Problem Statement

The door of Snuke's laboratory is locked with a security code.

The security code is a 4-digit number. We say the security code is hard to enter when it contains two consecutive digits that are the same.

You are given the current security code S. If S is hard to enter, print Bad; otherwise, print Good.

Constraints

S is a 4-character string consisting of digits.

Input

Input is given from Standard Input in the following format:

S

Output

If S is hard to enter, print Bad; otherwise, print Good.

Sample Input 1

3776

Sample Output 1

Bad

The second and third digits are the same, so 3776 is hard to enter.

Sample Input 2

8080

Sample Output 2

Good

There are no two consecutive digits that are the same, so 8080 is not hard to enter.

Sample Input 3

1333

Sample Output 3

Bad

Sample Input 4

0024

Sample Output 4

Bad



Sample input:
3776


Sample output:
Bad

Submission status: Wrong Answer

Solution code:
S = input()
judge = 0

for i in range(4):
  if S[i-1] == S[i]:
    judge += 1
    
if judge == 0:
  print('Good')
else:
  print('Bad')

Submission status: Wrong Answer

Solution code:
S=input()
cnt=0

for n in range(0,2):
    if S[n]==S[n+1]:
        cnt+=1

if cnt==0:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
	print ("Bad")
else:
	print ("Yes")

Submission status: Wrong Answer

Solution code:
S = str(input())
cnt=0
for i in range(len(S)-1):
    if S[i]==S[i+1]:
        print('Bad')
        break
    else:
        cnt+=1
if cnt==4:
    print('Good')

Submission status: Wrong Answer

Solution code:
def main():
    a=input()
    ca=a[0]
    for c in a[1:]:
        if ca == c:
            print('Bad')
            return
    ca = c
    print('Good')

main()

Submission status: Wrong Answer

Solution code:
S=list(input())
count=0
for i in range(2):
    if S[i]==S[i+1]:
        count=1
if count==1:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
S=list(input())
count=0
for i in range(2):
    if S[i]==S[i+1]:
        count=1
if count==1:
    print('Bad')
else:
    print('Good')
1333

Submission status: Wrong Answer

Solution code:
print('Good') if len(set(list(input()))) == 4 else print('Bad')

Submission status: Wrong Answer

Solution code:
n=input()
ans='Good'
for i in range(1,len(n)-1):
  if n[i]==n[i-1]:
    ans='Bad'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] == S[1]:
    print("Bad")
elif S[1] == S[2]:
    print("Bad")
elif S[2] == S[3]:
    print("Bad")
print("Good")

Submission status: Wrong Answer

Solution code:
s = input()
flag = 1
n = len(s)
for i in range(1, n):
    if s[i - 1] == s[i]:
        flag = 0
if flag:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
  print("bad")
else:
  print("good")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

code = input()
for i in range(len(code) - 1):
    if code[i] == code[i + 1]:
        print("Good")
        sys.exit()
print("Bad")

Submission status: Wrong Answer

Solution code:
s=input()

flag=True

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

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

Submission status: Wrong Answer

Solution code:
S = input()

flag = 0;

for i in range(1, 3):
    if S[i-1] == S[i] :
        flag = 1

res = "Good" if flag==0 else "Bad"

print(res)

Submission status: Wrong Answer

Solution code:
s=input()

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

Submission status: Wrong Answer

Solution code:
S=str(input())
for i in range(0,2):
    if S[i]==S[i+1]:
        print('Bad')
        break
    else:
        continue
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
S=str(input())
a=int(0)
for i in range(0,2):
    if S[i]==S[i+1]:
        break
        print('bad')
    else:
        continue
else:
    print('good')

Submission status: Wrong Answer

Solution code:
s = list(input())

count = 0
for i in range(0, 2):
    if s[i] == s[i+1]:
        count += 1

if count == 0:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s = list(input())

count = 0
for i in (0, 2):
    if s[i] == s[i+1]:
        count += 1

if count == 0:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
S = list(input())
prev = S[0]
ans = True
for s in range(1, 4):
    if s == prev:
        ans = False
    prev = s
print("Good" if ans else "Bad")

Submission status: Wrong Answer

Solution 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"

Submission status: Wrong Answer

Solution code:
S = str(input())

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

Submission status: Wrong Answer

Solution code:

s = input()

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

Submission status: Wrong Answer

Solution 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)

Submission status: Wrong Answer

Solution code:
A = str(input())
count = 0
for i in range(1,4):
	if A[-i]==A[-i-1]:
		count += 1
if count == 0:
	print("good")
else:
	print("bad")

Submission status: Wrong Answer

Solution code:
a=input()
if a[0]==a[1] or a[2]==a[1] or a[2]==a[3]:
  print('Bad')
else:
  print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list( input() )
for i in range( len(S) - 1 ) : 
    if S[i]==S[i+1] : 
       print( "Bad" )
       break
print( "Good" )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
password = list(input())
for i in range(4):
    if password[i] == password[i+1]:
        print("Bad")
        break
    else:
        print("Good")
        break

Submission status: Wrong Answer

Solution code:
password = list(input())
for i in range(3):
    if password[i] == password[i+1]:
        print("Bad")
        break
    else:
        print("Good")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution 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('Yes')

Submission status: Wrong Answer

Solution code:
a = list(input())
if len(a) == len(set(a)):
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
s = input()
for w in range(2):
    if s[w] == s[w+1]:
        print("Bad")
        break
    else:
        continue
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]==s[1]==s[2]==s[3]:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(1,4):
    if int(s[i-1])==int(s[i])+1 or int(s[i-1])==int(s[i])-1:
        print("Bad")
        exit()
print("Good")

Submission status: Wrong Answer

Solution code:
n = input()
s = set()
for c in n:
  s.add(c)
if len(s) == 4:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
S = raw_input()
arr = []

for i in range(4):
     if S[i] not in arr:
         arr.append(S[i])

if len(arr) != 2:
    print "No"
else:
    a = 0
    b = 0
    for i in range(4):
        if S[i] == arr[0]:
            a = a + 1
        elif S[i] == arr[1]:
            b = b + 1
    if a == 2 and b == 2:
        print"Yes"
    else:
        print "No"

Submission status: Wrong Answer

Solution code:
S = raw_input()
arr = []
for i in range(4):
     if S[i] not in arr:
         arr.append(S[i])

if len(arr) != 2:
    print "No"
else:
    a = 0
    b = 0
    for i in range(4):
        if S[i] == arr[0]:
            a = a + 1
        elif S[i] == arr[1]:
            b = b + 1
    if a == 2 and b == 2:
        print"Yes"
    else:
        print "No"

Submission status: Wrong Answer

Solution code:
S = list(input())
count = 0
bad = False

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


if bad==False:
     print("Goood")

Submission status: Wrong Answer

Solution code:
S=int(input())
n=1
while n>0.01:
    if int(S/1000*n)==int(S/100*n)-10*int(S/1000*n):
        print("Bad")
        break
    else:
        n=n/10
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S=int(input())
n=1
while n>0.001:
    if int(S/1000*n)==int(S-1000*n)/(100*n):
        print("Bad")
        break
    else:
        n=n/10
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S=int(input())
n=1
while n>0.001:
    if int(S/1000*n)==int(S/100*n)-int(S/1000*n):
        print("Bad")
        break
    else:
        n=n/10
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = [int(x) for x in list(input())]

for i in [0, 1, 2]:
    for j in [1, 2, 3]:
        if S[i] == S[j]:
            print("Bad")
            exit()

print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input())

c = 0
for i in range(3):
  if S[i] != S[i+1]:
    c += 1
if c == 3:
  print('GOOD')
else:
  print('BAD')

Submission status: Wrong Answer

Solution code:
s=input()
print('Good' if len(s)==len(set(s)) else 'Bad')

Submission status: Wrong Answer

Solution code:
S = input()
for i in  range(1,len(S)):
    if S[i-1] == S[i]:
        print('Bad')
    else:
        print('Good')

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(2):
    if s[i] == s[i + 1]:
        print('Bad')
        exit()
print('Good')

Submission status: Wrong Answer

Solution code:
S = input()
ans = 'Good'
for i,n in enumerate(S,1):
    if n == S[i-2]:
        ans = 'Bad'
print(ans)

Submission status: Wrong Answer

Solution code:
c = input()
num = list(c)

if num[0] == num[1]:
    print('bad')
elif num[1] == num[2]:
    print('bad')
elif num[2] == num[3]:
    print('bad')
else:
    print('good')

Submission status: Wrong Answer

Solution code:
s = str(1445) #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")

Submission status: Wrong Answer

Solution code:
s=input()
length=len(s)
flag=True
for i in range(length-1):
  if s[i]==s[i+1]:
    flag=False
    break
if flag:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution 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')

Submission status: Wrong Answer

Solution code:
s = input()

if len(set(s)) < len(s):
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
	print("Bad")
else:
	print("good")

Submission status: Wrong Answer

Solution 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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = list(input());

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

Submission status: Wrong Answer

Solution code:
S = input()

setS = []
for i in range(4):
    setS.append(S[i])
    
setS = set(setS)
if len(setS) == 4:
    print("Good")
else:
    print("Bad")

Submission status: Wrong Answer

Solution code:
s = list(input())
ans = len(set(s))

if ans == 4:
  print("Good")
else:
  print("Bad")

Submission status: Wrong Answer

Solution code:
#140
s = input()
if len(set(s)) < 4:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution 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())

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import re
s = input()
if re.search(r'(11|22|33|44|55|66|77|88|99|00)', s):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = set(input())
if len(s) == 4:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution code:
S = str(input())
ans=0
for i in range(0,2):
  if S[i] == S[i+1]:
    ans += 1
    break
if ans >= 1:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = str(input())
ans=0
for i in range(0,2):
  if S[i] == S[i+1]:
    ans = 1
    break
if ans == 1:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = str(input())
ans=0
for i in range(0,2):
  if S[i]==S[i+1]:
    ans = 1
    exit()
  else:
    pass
if ans == 1:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = str(input())
ans=0
for i in range(0,2):
  if S[i]==S[i+1]:
    ans = 1
    exit()
  else:
    pass
if ans==1:
  print('Bad')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = str(input())
for i in range(0,2):
  if S[i]==S[i+1]:
    print('Good')
    exit()
  else:
    pass
print('Bad')

Submission status: Wrong Answer

Solution code:
S = str(input())
for i in range(0,2):
  if S[i]==S[i+1]:
    print('Good')
    break
  else:
    print('Bad')
    break

Submission status: Wrong Answer

Solution code:
S = str(input())
for i in range(0,2):
  if S[i]==S[i+1]:
    print('Good')
    break
  else:
    print('Bad')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()

#これだと例えば「1234」に場合に

#＝＝＝＝＝＝＝＝if文始まり
#1 != 2なので「Bad」出力
if s[0] == s[1]:
    print('Bad')
    #exit()
#＝＝＝＝＝＝＝＝if文終わり

#＝＝＝＝＝＝＝＝if文始まり
#2 != 3なので「Bad」出力
if s[1] == s[2]:
    print('Bad')
    #exit()
#＝＝＝＝＝＝＝＝if文終わり

#＝＝＝＝＝＝＝＝if文始まり
#3 != 4なので「Bad」出力
if s[2] == s[3]:
    print('Bad')
    #exit()
else:
    print('Good')
#＝＝＝＝＝＝＝＝if文終わり

#計3回「Bad」が出力されます
#一か所でも「Bad」なら回答は「Bad」なので各「Bad」の後にexit()（プログラム終了）を追加


#又は次のように記載
#＝＝＝＝＝＝＝＝if文始まり
"""
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")
"""
#＝＝＝＝＝＝＝＝if文終わり

Submission status: Wrong Answer

Solution code:
s=input()

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

Submission status: Wrong Answer

Solution code:
s=input()
if int(s[0])==int(s[1])and int(s[1])==int(s[2])and int(s[2])==int(s[3]):
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
s = list(input(''))
if len(set(s))-len(s) != 0:
    print('Bad')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#14:18
S = input()
for i in range(3):
    if S[i] == S[i+1]:
        print("Bad")
    else:
        print("Good")

Submission status: Wrong Answer

Solution code:
import sys
S=input()
c=1 
for i in range(2):
    if S[i]==S[i+1]:
      c=0
if c:
    print("Good")
else:
    print("Bad")

Submission status: Wrong Answer

Solution code:
import sys
S=input()

for i in range(2):
    if S[i]==S[i+1]:
      print("Bad")
      sys.exit(0)
print("Good")

Submission status: Wrong Answer

Solution code:
s=int(input())
n=str(s)
t=len(n)-1
array=list(map(int,n))
ans=0
for i in range(0,t):
    if array[i]==array[i+1]:
        ans='Bad'
        break
    else:
        ans='Good'
print(ans)

Submission status: Wrong Answer

Solution 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')

Submission status: Wrong Answer

Solution code:
S = list(str(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')

Submission status: Wrong Answer

Solution code:
S = input()
s = list(S)
a = 0
for i in range(0,2):
    if s[i] == s[i + 1]:
        a += 1
if a >= 1:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = list(input())

l = len(s)

goodFlag = False
for i in range(l-1):
    if s[i] == s[i+1]:
        ggoodFlag = True

if goodFlag == True:
    print ("Good")
else:
    print ("Bad")

Submission status: Wrong Answer

Solution 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')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        print('Bad')
        break
print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
n=0
for i in range(4):
    if s[i-1]==s[i]:
        n+=1
    break
if n>0:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
s=input()
n=0
for i in range(4):
    if s[i-1]==s[i]:
        n+=1
    else:
        n+=0
if n>0:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
S = input()
D = dict()
N = len(S)
count = False
for i in range(N):
    if S[i] in D:
        count = True
    else:
        D[S[i]] = 1
if count:
    print('Bad')
else:
    print('Good')

Submission status: Wrong Answer

Solution code:
from collections import Counter
S = input()
C = Counter(S).most_common()
if C[0][1] != 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(map(int, input()))

try:
    for i in range(4):
        if S[i] == S[i + 1]:
            print(S[i],S[i + 1])
            print('Bad')
            break
except:
    print('Good')

Submission status: Wrong Answer

Solution code:
S = list(map(int, input().split()))

try:
    for i in range(4):
        if S[i] == S[i + 1]:
            print('Bad')
            break
except:
    print('Good')

Submission status: Wrong Answer

Solution code:
a= list(map(int,input().split()))
flg=0
for i in range(len(a)-1):
    if(a[i]==a[i+1]):
        flg =1
        break
if(flg==1):
    print("Bad")
elif(flg==0):
    print("Good")

Submission status: Wrong Answer

Solution code:
print('Good' if len(set(input()))==4 else 'Bad')

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

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


if count >= 1:
    print("Bad")
elif count == 0:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

for i in range(len(S)):
    if S[i] == S[i - 1]:
        count += 1
        continue
    else:
        pass

if count >= 1:
    print("Bad")
elif count == 0:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

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

if count == 1:
    print("Bad")
elif count == 0:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

for i in range(1,4):
    if S[i] == S[i - 1]:
        count += 1
        continue

if count == 1:
    print("Bad")
elif count == 0:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

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

if count >= 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

for i in range(len(S)):
    if S[i] == S[i - 1]:
        count += 1
    if len(S) == 4:
        if count == 1:
            print("Bad")
            break
        elif count == 0:
            print("Good")
            break
    else:
        exit()

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

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

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

for i in range(len(S)):
    if S[i] == S[i - 1]:
        count += 1
        continue
    if len(S) == 4:
        if count == 1:
            print("Bad")
            break
        elif count == 0:
            print("Good")
            break

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0
for i in range(1,4):
    if S[i] == S[i - 1]:
        count += 1
    if len(S) == 4:
        if count == 1:
            print("Bad")
            break
        elif count == 0:
            print("Good")
            break

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0
for i in range(1,4):
    if S[i] == S[i - 1]:
        count += 1
    if len(S) == 4:
        if count >= 1:
            print("Bad")
            break
        else:
            print("Good")
            break
    else:
        break

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

for i in range(len(S)):
    if S[i] == S[i - 1]:
        count += 1
        continue
if len(S) == 4:
    if count >= 1:
        print("Bad")
    else:
        print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0
flag_value = 2
for i in range(len(S)):
    if len(S) >= 4:
        if S[i] == S[i - 1]:
            count += 1
            continue
        if count >= 1:
            flag_value = True
        else:
            flag_value = False

if flag_value == True:
    print("Bad")
elif flag_value == False:
    print("Good")

Submission status: Wrong Answer

Solution code:
import sys

S = list(input(""))
count = 0
for i in range(len(S)):
    if len(S) >= 4:
        if S[i] == S[i - 1]:
            count += 1
            continue
        if count >= 1:
            print("Bad")
        else:
            print("Good")

Submission status: Wrong Answer

Solution code:
import sys

S = list(input(""))
count = 0

if len(S) >= 4: 
    for i in range(len(S)):
        if S[i] == S[i - 1]:
            count += 1
            continue
        else:
            pass
else:
    sys.exit()

if count >= 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
S = list(input(""))
count = 0

for i in range(len(S)):
    if S[i] == S[i - 1]:
        count += 1
        continue
    else:
        pass

if count >= 1:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
  print('Bad')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
s=input()
if len(s)>len(set(s)):
  print('Bad')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
p = int(input())

a = int(p % 10)
b = ((p-a) % 100)//10
c =(( p-a-(b*10)) % 1000) //100
d = p // 1000


if a == b or b==c or c==d:
    print('Bad')
else:
    print('good')

Submission status: Wrong Answer

Solution code:
# -*- coding:utf8 -*-

s = input()
ans = 'Good'
if len(set(s)) != 4:
        ans = 'Bad'
print(ans)

Submission status: Wrong Answer

Solution code:
S = list(map(int,input()))
cnt=0
for i in range(4):
  if S[i-1]==S[i]:
    cnt +=1
if cnt>0:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
def main(seq):
    return len(seq) != len(set(seq))

N = list(input(""))
if main(N) == True:
    print("Bad")
if main(N) == False:
    print("True")

Submission status: Wrong Answer

Solution code:
s=str(input())

def is_s_safe(n):
    for i in range (0,2):
        if s[i]==s[i+1]:
            return "Bad"
    return "Good"
print (is_s_safe(s))

Submission status: Wrong Answer

Solution code:
s=str(input())

def is_s_safe(n):
    for i in range (0,2):
        if s[i]==s[i+1]:
            return "Bad"
    return "Good"
is_s_safe(s)

Submission status: Wrong Answer

Solution code:
s=str(input())

def is_s_safe(n):
    for i in range (0,2):
        if s[i]==s[i+1]:
            return ("Bad")

        else:
            return ("Good")
is_s_safe(s)

Submission status: Wrong Answer

Solution code:
S = str(input())
S = list(S)
S_sorted = sorted(S)
if S_sorted[0] == S_sorted[1] or S_sorted[2] == S_sorted[3] or S_sorted[1] == S_sorted[2]:
    ans = ("Bad")
else:
    ans = ("Good")

print(str(ans))

Submission status: Wrong Answer

Solution code:
S = str(input())
S = list(S)
S_sorted = sorted(S)
if S_sorted[0] == S_sorted[1] or S_sorted[2] == S_sorted[3] or S_sorted[1] == S_sorted[2]:
    ans = ("Bad")
else:
    ans = ("Good")

print(ans)

Submission status: Wrong Answer

Solution code:
s = list(input())
judge = False
if s[0] == s[1]:
    judge = True
if s[1] == s[2]:
    judge = True
if s[2] == s[3]:
    judge = True
if judge:
    print('Good')
else:
    print('Bad')

Submission status: Wrong Answer

Solution 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")

Submission status: Wrong Answer

Solution 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 !=0:
    print("Good")

Submission status: Wrong Answer

Solution code:
while True:
    try:
        S = input()
        
        for i in range(len(S)-1):
            if S[i] == S[i-1]:
                print("Bad")
                break
        else:
            print("Good")
    except:
        break

Submission status: Wrong Answer

Solution 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)

Submission status: Wrong Answer

Solution code:
s = [x for x in input()]
for i in range(3):
  if s[i] == s[i+1]:
    print('Bat')
    break
  else:
    print('Good')

Submission status: Wrong Answer

Solution 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')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] == s[1]:
  print('Bad')
elif s[2] == s[1]:
  print('Bad')
elif s[3] == s[2]:
  print('Bab')
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
S = input()
s=len(S)
print(s)

Submission status: Wrong Answer

Solution code:
s = input()
if s.count(s[0])>=2:
  print("Bad")
elif s.count(s[1])>=2:
  print("Bad")
elif s.count(s[2])>=2:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
s = input()
if s.count(s[0])>=2:
  print("Bad")
elif s.count(s[1])>=2:
  print("Bad")
elif s.count(s[2])>=2:
  print("Bad")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
s = map(int,list(str(input())))
s=list(s)

print('Bad' if sum([s[i] == s[i + 1] for i in range(2)]) > 0 else 'Good')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())
for i in range(len(S)):
    if S[i-1] == S[i]:
        print("Bad")
        exit()
print("Good")

Submission status: Wrong Answer

Solution code:
S = input()
tmp = S[0]
for num in S[1:]:
    if num == tmp:
        print('Bad')
        exit()
    tmp = num
print('Yes')

Submission status: Wrong Answer

Solution code:
# 文字列の入力
S = input()

# 同じ数字が連続する場合
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
  print("bad")

# 同じ数字が連続しない場合
else:
  print("good")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution 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')

Submission status: Wrong Answer

Solution code:
from collections import Counter
s = input()
c = sorted(Counter(s).values(), reverse = 1)
if c[0] == 1:
	print("Good")
else:
	print("Bad")

Submission status: Wrong Answer

Solution code:
w=input();print("GBoaodd"[w[0]!=w[1]!=w[2]!=w[3]::2])

Submission status: Wrong Answer

Solution code:
S = input();print(['Good','Bad'][len(set(S))<4])

Submission status: Wrong Answer

Solution code:
S = input();print(['Good','Bad'][len(set(S))<len(S)])

Submission status: Wrong Answer

Solution code:
S = input();print(['Bad','Good'][len(set(S))>len(S)])

Submission status: Wrong Answer

Solution code:
str = int(input())

if (str / 1000 == str % 1000 / 100) or (str % 1000 / 100 == str % 100 / 10) or (str % 100 / 10 == str % 10) :
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
str = int(input())

if (str / 1000 == str % 1000 / 100) or (str % 1000 / 100 == str % 100 / 10) or (str % 100 / 10 == str % 10) :
  print("Bad")
else:
  print("Good")
    
print(str / 1000 == str % 1000 / 100)