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: Accepted

Solution code:
s = input()
ans = 0
for i in range(3):
    if s[i] == s[i + 1]:
        ans = 1
        break

print('Good' if ans == 0 else 'Bad')

Submission status: Accepted

Solution code:
import sys
S = sys.stdin.readline().strip()

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

Submission status: Accepted

Solution code:
Flag = True
s = input().split()
s = list(s[0])
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        Flag = False
if Flag:
    print("Good")
else:
    print("Bad")

Submission status: Accepted

Solution code:
s = input()
msg = "Good"

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

print(msg)

Submission status: Accepted

Solution code:
S = input()

before_s = 'a'
flg = False
for s in S:
  if s == before_s:
    flg = True
  
  before_s = s

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

Submission status: Accepted

Solution code:
S = input()
f = False
for ii in range(3):
    if S[ii] == S[ii+1]: f = True; break;

print("GBoaodd"[f::2])

Submission status: Accepted

Solution code:
S=input()
C=[]

for i in range(len(S)-1):
    C.append(int(S[i])-int(S[i+1]))
  
if C.count(0)==0:
    print('Good')

else:
    print('Bad')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
def main():
    word = input()

    flg = False
    kako = ""
    for w in word:
        if w == kako:
            flg = True
        kako = w

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
for i in range(3):
    flag = False
    if n[i] == n[i+1]:
        flag = True
        break

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

Submission status: Accepted

Solution code:

code = input()
# 隣に同じ数値（今回は文字でも問題ない）ならBad
print('Bad' if code[0]==code[1] or code[1]==code[2] or code[2]==code[3] else 'Good')

Submission status: Accepted

Solution code:
#######################################
s = input()
ss = [si for si in s]

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
S=str(input())
s1=S[0:1]
s2=S[1:2]
s3=S[2:3]
s4=S[3:4]
if s1==s2:
    print('Bad')
elif s2==s3:
    print('Bad')
elif s3==s4:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

Solution code:
s = input()
t = 10
for i in s:
    if i == t:
        print('Bad')
        exit()
    else:
        t = i
print('Good')

Submission status: Accepted

Solution code:
a,b,c,d=input()

if a == b:print('Bad')
elif c == b:print('Bad')
elif c == d:print('Bad')
else : print('Good')

Submission status: Accepted

Solution code:
s = ''
for i in input():
    if s == i:
        print("Bad")
        exit()
    s = i
print("Good")

Submission status: Accepted

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: Accepted

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: Accepted

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: Accepted

Solution code:
list1= input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(S: str):
    str_S = S
    for i in range(4):
        if i == 3:
            break
        if str_S[i] == str_S[i + 1]:
            print("Bad")
            return 
    print("Good")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S=list(input())
A=[]
for i in range ( len ( S ) - 1 ):
    A.append ( int( S[i+1] ) -int ( S[i] ) )

if 0 in A :
    print ( 'Bad' )
else :
    print ( 'Good' )

Submission status: Accepted

Solution code:
s = str(input())
number_list = []
count = 0
for number in s:
    number_list.append(number)
for i in range(3):
    if number_list[i] == number_list[i+1]:
        count += 1
    else:
        pass
if count == 0:
    print('Good')
else:
    print('Bad')

Submission status: Accepted

Solution code:
# A-Security(ABC131)
X=str(input())
if X[0]!=X[1] and X[1]!=X[2] and X[2]!=X[3]:
    print("Good")
else:
    print("Bad")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
tmp = s[0]
ans = 'Good'
for i in range(1, len(s)):
    if tmp == s[i]:
        ans = 'Bad'
        break
    else:
        tmp = s[i]
print(ans)

Submission status: Accepted

Solution code:
s = str(input())
k = 1
for i in range(len(s)-1):
  if s[i] == s[i+1]:
    k = 0
    print("Bad")
    break
if k:
  print("Good")

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

# print(S[0])
# print(S[1])
# print(S[2])
# print(S[3])

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: Accepted

Solution 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

Submission status: Accepted

Solution code:
S=input()
a="Good"

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

Submission status: Accepted

Solution code:
def main():
    s = list(input())
    ans = True
    for i in range(3):
        if ans == True:
            ans = False if s[i] == s[i+1] else True
    print('Good' if ans == True else 'Bad')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=[int(i) for i in input()]

ans='Good'
for i in range(3):
  if l[i]==l[i+1]:
    ans='Bad'
    break
    
print(ans)

Submission status: Accepted

Solution code:
# input string S (4numbers)
S = input()

# define a string variable ans
ans = 'Good'
# if S ontains two consecutive digits that are the same
for i in range(3):
    if S[i]== S[i+1]:
        ans = 'Bad'
        break
# output ans
print(ans)

Submission status: Accepted

Solution code:
def test():
    s = list(input())

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

    print("Good")


if __name__ == "__main__":
    test()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
pw=list(input())

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

Submission status: Accepted

Solution code:
S = input()
difficult = False

for i in range(3):
    if S[i] == S[i+1]:
        difficult = True
        break

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

Submission status: Accepted

Solution code:
# Security
N = str(input())

for i in range(len(N)-1):
    if N[i] == N[i+1]:
        print('Bad')
        exit()
    else:
        pass
print('Good')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

input = input().split()
inputList = list(input[0])
# a = int(input[0])
# b = int(input[1])
# c = int(input[2])

# inputList.sort()

flg = 1
for i in range(0, len(inputList)-1):
    if inputList[i] == inputList[i + 1]:
        flg = 0
        break

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

Submission status: Accepted

Solution code:
c_b = 'a'
for c_n in input():
    if c_b == c_n:
        print("Bad")
        exit()
    c_b = c_n
print("Good")

Submission status: Accepted

Solution code:
S = input()
flag = 0
for i in range(3):
    if S[i] == S[i+1]:
        flag = 1
    else:
        continue

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
l = list(S)

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

Submission status: Accepted

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

Submission status: Accepted

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

print ('Good')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
def solve():
    s = input()
    return "Bad" if any([s[i] == s[i + 1] for i in range(len(s) - 1)]) else "Good"


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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

Solution code:
S=input()
for i in range(3):
  if S[i]==S[i+1]:
    print("Bad")
    exit(0)
print("Good")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

number=input()

for n in range(3):
    if number[n]==number[n+1]:
        print('Bad')
        sys.exit()
print('Good')

Submission status: Accepted

Solution code:
import sys
S = input()
for i in range(3):
  if S[i] == S[i+1]:
    print("Bad")
    sys.exit()
print("Good")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S = input()
S = [c for c in S]

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

def main(S):
    return 'Bad' if S[0] == S[1] or S[1] == S[2] or S[2] == S[3] else 'Good'

if __name__ == '__main__':
    S = input()
    print(main(S))

Submission status: Accepted

Solution code:
s = input()
print(["Good", "Bad"][any(s[i] == s[i+1] for i in range(3))])

Submission status: Accepted

Solution code:
s = input()
print(["Good", "Bad"][any(len(set(s[i:i+2])) == 1 for i in range(3))])

Submission status: Accepted

Solution code:
s = input()
ans = "Good";
for i in range(3):
    if len(set(s[i:i+2])) == 1:
        ans = "Bad"
print(ans)

Submission status: Accepted

Solution code:
s = input()
s_list = list(s)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print('Good')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

print('Good')

Submission status: Accepted

Solution code:
S = input()
before = ''
for x in S:
    if before == x:
        print('Bad')
        exit()
    before = x

print('Good')

Submission status: Accepted

Solution code:
#coding : utf-8　

import os
import sys

S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
N = input()
tmp = ""
for i in N:
  if tmp == i:
    print("Bad")
    exit()
  tmp = i

print("Good")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

hantei="Good"

for i in range(3):
    if S[i] == S[i+1]:
        hantei="Bad"
        
print(hantei)

Submission status: Accepted

Solution code:
s = input()
if len(set(s)) == 4:
    print('Good')
elif len(set(s)) == 1:
    print('Bad')
elif len(set(s)) == 2:
    if s[0] == s[2] and s.count(s[0]) == 2:
        print('Good')
    else:
        print('Bad')
else:
    if s[0] == s[1] or s[1] == s[2] or s[2] ==s[3]:
        print('Bad')
    else:
        print('Good')

Submission status: Accepted

Solution code:
s = input()
prev = ''
for c in s:
    if c == prev:
        print('Bad')
        exit()
    else:
        prev = c
print('Good')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input())
for i in range(len(s)):
  s[i]=int(s[i])
  
j=(s[1]-s[0])*(s[2]-s[1])*(s[3]-s[2])

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

Submission status: Accepted

Solution code:
import sys
A = [i for i in input()]
for j in range(len(A)-1):
  if A[j] == A[j+1]:
    print("Bad")
    exit()
  else:
    None
print("Good")

Submission status: Accepted

Solution code:
a,b,c,d = input()

if a==b or b==c or c==d:
  print("Bad")
else:
  print("Good")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c, d = input()

if a == b:
    print("Bad")
elif b == c:
    print("Bad")
elif c == d:
    print("Bad")
else:
    print("Good")

Submission status: Accepted

Solution code:
s = list(input())
s = [int(i) for i in s]

jud = "Good"
for i in range(3):
    if s[i] == s[i+1]:
        jud = "Bad"
        break

print(jud)

Submission status: Accepted

Solution code:
def iread():
    return int(input())


def sread():
    return input()


def aread_int():
    tmp = input().split()
    ret = [int(i) for i in tmp]
    return ret


def aread_str():
    return input().split()


if __name__ == '__main__':
    s = sread()
    for i in range(10):
        if str(i) * 2 in s:
            print("Bad")
            exit()

    print("Good")

Submission status: Accepted

Solution code:
S = list(map(int, input().rstrip()))
for i in range(3):
  if S[i]==S[i+1]:
    print("Bad")
    exit()
print("Good")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(S: str):
    for i in range(len(S)-1):
        if S[i+1] == S[i]:
            print('Bad')
            return
    print('Good')
    return 


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = str(next(tokens))  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
a,b,c,d = input()
S=a+b+c+d
if a==b or b==c or c==d:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

Solution code:
a = input()
no = 0

for i in range(3):
    if(a[i] == a[i+1]):
        no = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

str_list = list(a)

#print(str_list)

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

Submission status: Accepted

Solution code:
print((lambda x:sum([i==j for i,j in zip(x[1:],x[:3])])and'Bad'or'Good')(input()))

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
n=[int(S[i]) for i in range(4)]

judge=True
for i in range(3):
  if n[i]==n[i+1]:
    judge=False
    
if judge:
  print('Good')
else:
  print('Bad')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
is_bad = False
ex = None
for s in S:
  if s == ex:
    is_bad = True
    break
  ex = s
if is_bad:
  print('Bad')
else:
  print('Good')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()[0]

is_difficult = False

for i in range(0, len(s)-1):
    if s[i] == s[i+1]:
        is_difficult = True
        break

ans = 'Bad' if is_difficult else 'Good'
print(ans)

Submission status: Accepted

Solution code:

s = input()

def solve(s):
    if len(s) <= 1:
        return False
    if s[0] == s[1]:
        return True
    return solve(s[1:])

print("Bad" if solve(s) else "Good")

Submission status: Accepted

Solution code:
num = input()
l = [i for i in num]
count = 0
for k in range(0,len(l)-1):
    if l[k] == l[k+1]:
        count+=1
if count > 0:
    print("Bad")
else:
    print("Good")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC131 A
S = list(input())
l = len(S)
B = True
for i in range(l - 1):
    if S[i] == S[i + 1]:
        B = False
        break
if B:
    print("Good")
else:
    print("Bad")

Submission status: Accepted

Solution code:
s = input()
flg = 0
for i in range(len(s)-1):
    if s[i]==s[i+1]:
        flg = 1

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

Submission status: Accepted

Solution code:
S = input().strip()
ans = "Good"
for i in range(1, len(S)):
    if S[i] == S[i-1]:
        ans = "Bad"
print(ans)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w=input()

cnt=0
for i in w:
    if cnt+1 < len(w):
        if w[cnt] == w[cnt+1]:
            print("Bad")
            exit()
    cnt += 1

print("Good")

Submission status: Accepted

Solution code:
def main():
    S = input()
    for i in range(3):
        if (S[i] == S[i+1]):
            print("Bad")
            return
    print("Good")

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = input()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

result = "Good"
for i in range(3):
    if N[i] == N[i+1]:
        result = "Bad"

print(result)

Submission status: Accepted

Solution code:
str = input()
p = ""
result = "Good"
for s in str:
    if p == s :
        result = "Bad"
    p = s
print(result)

Submission status: Accepted

Solution code:
S=input()[:4]

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

Submission status: Accepted

Solution code:
S = input()
A = S + "a"
for i in range(4):
    if A[i] == A[i+1]:
        print('Bad')
        break
    
else:
    print('Good')

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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: Accepted

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

def main():
	s = input().strip()
	for i in range(len(s)-1):
		if s[i] == s[i+1]:
			print('Bad')
			return
	print('Good')

if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())
flag = False
for i in range(len(s)-1):
  if s[i] == s[i+1]:
    flag = True
if flag:
  print('Bad')
else:
  print('Good')

Submission status: Accepted

Solution code:
l = list(input())
p = [int(i) for i in l]
err = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

flag = True
for i in range(3):
    if  s[i] == s[i+1]:
        flag = False
        break
if flag:
    print('Good')
else:
    print('Bad')

Submission status: Accepted

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: Accepted

Solution code:
S = list(map(int, input()))
ans = 'Good'
for i in range(3):
    if S[i] == S[i+1]:
        ans = 'Bad'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
word = list(input())
bomb = 0
for w in range(1, len(word)):
  if word[w] == word[w - 1]:
    bomb += 1
    break
if bomb == 0:
  print("Good")
else:
  print("Bad")