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

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

Submission status: Accepted

Solution code:
S = input()

hantei = 0
for i in range(3):
    if(S[i]==S[i+1]):
        hantei = -1
        break

print("Good") if hantei == 0 else print("Bad")

Submission status: Accepted

Solution code:
S = input()
p = ''
for i in S:
  if p == i:
    print('Bad')
    exit()
  else:
    p = i
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:
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:
s = input()

f = 0

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

Submission status: Accepted

Solution code:
def p_a():
    n = input()
    b = ""
    for i in n:
        if b == i:
            print("Bad")
            exit()
        b = i
    print("Good")

def p_b():
    pass


def p_c():
    pass


def p_d():
    pass


def p_e():
    pass


def p_f():
    pass


if __name__ == '__main__':
    p_a()

Submission status: Accepted

Solution code:
def main():
  line = input()
  for i in range(len(line)):
    if i >= 1:
      if line[i] == line[i-1]:
        print("Bad")
        return
  print("Good")
  return

main()

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:
import sys

s = input()

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

print('Good')

Submission status: Accepted

Solution code:
S = input()
list_S = list(S)

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

Submission status: Accepted

Solution code:
import sys

s = input()

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

print('Good')

Submission status: Accepted

Solution code:
s=list(str(input()))
a=[s[0]]
for i in range(1,4):
    if s[i]!=s[i-1]:
        a.append(s[i])
if len(a)==4:
    print("Good")
else:
    print("Bad")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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") 
elif S[0] == S[1] == S[2] or S[1] == S[2] == S[3]:
    print("Bad") 
else:
    print("Good")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()
for i in range(10):
    if (str(i) + str(i)) in S:
        print('Bad')
        break
else:
    print('Good')

Submission status: Accepted

Solution code:
s = input()
b = 'x'
ans = 'Good'
for c in s:
    if c == b:
        ans = 'Bad'
        break
    b = c

print(ans)

Submission status: Accepted

Solution code:
l=list(input())

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

Submission status: Accepted

Solution code:
import sys
s = input()

if s[0]==s[1]:
  print("Bad")
  sys.exit()
if s[1]==s[2]:
  print("Bad")
  sys.exit()
if s[2]==s[3]:
  print("Bad")
  sys.exit()
print("Good")

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

Submission status: Accepted

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

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=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:
S = list(input())
bad = False
for i in range(1, len(S)):
	if S[i] == S[i - 1]:
		bad = True

print("Bad" if bad else "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:
import sys
s = str(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:
# Security
S = list(map(int, input()))

cur = S[0]
flag = 'Good'
for i in range(1,4):
	if S[i]==cur:
		flag = 'Bad'
	cur = S[i]

print(flag)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

count=0
for i in range(0,3):
    if S[i]!=S[i+1]:
        count+=1

if(count==3):
    print("Good")
else:
    print("Bad")

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
#140
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()))
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(1,4):
  if s[i]==s[i-1]:
    print("Bad")
    exit()
print("Good")

Submission status: Accepted

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

Submission status: Accepted

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

if flag == 1:
    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:
def main():
    array = list(input())
    for i in range(len(array)-1):
        if array[i] == array[i+1]:
            print('Bad')
            return
    print('Good')
    return

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

        
print('Good')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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:
s = input()

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

Submission status: Accepted

Solution code:
s = input()
bl = 1 in (len(set(x)) for x in zip(s, s[1:]))
print('Bad' if bl else 'Good')

Submission status: Accepted

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

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:
import sys

def solve():
    password = input()
    
    for i in range(3):
        if password[i] == password[i+1]:
            print('Bad')
            sys.exit()
    
    print('Good')

if __name__ == '__main__':
    solve()

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()
flag= True
for i in range(1,len(n)-1):
    if n[i - 1] == n[i] or n[i] == n[i + 1]:
        flag = False
        break

print('Good' if flag else 'Bad')

Submission status: Accepted

Solution code:
S = str(input())
X =[]
for s in S:
    X.append(s)

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:
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:
s=input()

if s[0] == s[1]:
    print('Bad')
    exit()
if s[1] == s[2]:
    print('Bad')   
    exit()
if s[2] == s[3]:
    print('Bad')
    exit()
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:
#ABCA - Security
a = str(input())
s = list(a)
count = 0
for i in range(3):
    if s[i] != s[i+1]:
        count += 1
if count == 3:
    print("Good")
else:
    print("Bad")

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip()

bl = any(x == y for x,y in zip(S,S[1:]))
answer = 'Bad' if bl else 'Good'
print(answer)

Submission status: Accepted

Solution code:
S = input()

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#1行目が文字列の場合
#数値が与えられるが各桁毎の処理が必要な場合には文字列として読み込んだ方が処理しやすい
s = str(input())

#連続する文字列が同じかを確認する
#とある i に対してその 1つ前の文字が同じならば同じ文字列が連続している
#この場合にfor文は1から処理する
#for i in range(start, end, step)
#start = 開始値（以上。1の場合1から開始）
#end = 終了値（未満。5の場合4で終了）
#step = 間隔？（2の場合は2増加する）
#for i in range(1, 10, 2):ならiの値は「1, 3, 5, 7, 9」となる
for i in range(1, len(s)):
    #i番目の文字がi-1(ひとつ前の文字)と一致する場合
    if s[i] == s[i-1]:
        print("Bad")
        #プログラムを終了
        exit()
#連続文字列がない場合
print("Good")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 = list(input(''))
a = 0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        a += 1
if a != 0:
    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 = input()

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

Submission status: Accepted

Solution code:
s = list(map(str, input()))
count = 0
for i in range(1,4):
    if s[i] == s[i-1]:
        print('Bad')
        break
    else:
        count += 1
        continue
if count == 3:
    print('Good')

Submission status: Accepted

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

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:
s = input()
ans = 0
for i in range(3):
    if s[i] == s[i+1]:
        ans = 1
print("Good" if ans==0 else "Bad")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

count = 0

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

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

Submission status: Accepted

Solution code:
s=input()
a=0
for i in range(0,len(s)-1):
    if s[i]==s[i+1]:
        a=a+1
if a!=0:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

S=input()
count = 0

if S[0]==S[1]:
    print('Bad')
    sys.exit()
if S[1]==S[2]:
    print('Bad')
    sys.exit()
if S[2]==S[3]:
    print('Bad')
    sys.exit()

print('Good')

Submission status: Accepted

Solution code:
n=input()
if any(n[i]==n[i+1] for i in range(0,3)):
    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()
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:
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)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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(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')

Submission status: Accepted

Solution code:
s = list(input())

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

print("Good")

Submission status: Accepted

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


def solve(S: int):
    previous = ''
    for s in list(str(S).zfill(4)):
        if previous == s:
            print('Bad')
            return
        previous = s

    print('Good')
    return


# Generated by 1.1.5 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 = int(next(tokens))  # type: int
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

ans = False
for i in range(1,4):
    if s[i-1] == s[i]:
        ans = True
if ans:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    for i in range(1, len(s)):
        if s[i] == s[i-1]:
            print("Bad")
            exit()
    print("Good")


if __name__ == '__main__':
    slove()

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


def main():
    s = input()
    print("Bad" if any([s[i - 1] == s[i] for i in range(1, 4)]) else "Good")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()
l = s[0]
for i in range(1, len(s)):
  if l == s[i]:
    print("Bad")
    quit()
  else:
    l = s[i]
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:
s = input()

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

Submission status: Accepted

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


def main():
    s_list = list(map(int, input()))
    for i in range(0, len(s_list) - 1):
        if s_list[i] == s_list[i + 1]:
            print('Bad')
            return
    print('Good')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(map(int, list(input())))
pre_s = 10
flag = False
for i in s:
    if (i == pre_s) and not(flag):
        flag = True
    pre_s = i
if flag:
    print("Bad")
else:
    print("Good")

Submission status: Accepted

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


def main():
    S = input()[:-1]
    for i in range(3):
        if S[i:i+1]==S[i+1:i+2]:
            print('Bad')
            return
    print('Good')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

s = list(raw_input())

l = len(s)

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

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

Submission status: Accepted

Solution code:
S = list(input())

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

Submission status: Accepted

Solution code:
def main():

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = input()
j = False

for i in range(len(S)):
  try:
    if S[i] == S[i+1]:
      j = True
    else:
      pass
  except:
    pass

if j:
  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:
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:
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()
flag = 0
for i in range(3):
  if s[i] == s[i+1]:
    flag = 1
    break
if flag == 0:
  print("Good")
else:
  print("Bad")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

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

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 = list(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:
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()
print("Bad" if any(S[i] == S[i+1] for i in range(3)) else "Good")

Submission status: Accepted

Solution code:
S = list(input().strip())

flag = False
p_s = None

for s in S:
  if s == p_s:
    flag = True
    break
  else:
    p_s = s

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

Submission status: Accepted

Solution code:
s=input()
n=0
for i in range(3):
    if s[i]==s[i+1]:
        n+=1
    else:
        n+=0
if n>=1:
    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()
    
print('Good')

Submission status: Accepted

Solution code:
S = 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 = list(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())
i = 0
while i < len(S) - 1:
    if S[i] == S[i+1]:
        print("Bad")
        exit()
    i += 1
print("Good")

Submission status: Accepted

Solution code:
S=str(input())
S=",".join(S)
S=S.split(",")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def solve(S: str):

    good = True

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

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


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(map(int,input()))

result = "True"
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        result = "bad"
        break
if result == "bad":
    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:
S = input()

ans = True
for i in range(len(S)-1):
    if S[i+1] == S[i]:
        ans = False

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

Submission status: Accepted

Solution code:
a = input()

answer = 'Good'
if a[0] == a[1] and a[2] != a[3]:
  answer = 'Bad'
  
if a[1] == a[2] and a[0] != a[3]:
  answer = 'Bad'
  
if a[2] == a[3] and a[0] != a[1]:
  answer = 'Bad'

if a[0] == a[1] and a[2] == a[3]:
  answer = 'Bad'
  
if a[0] == a[1] == a[2] != [3]:
  answer = 'Bad'
  
if a[1] == a[2] == a[3] != [0]:
  answer = 'Bad'

if a[0] == a[1] == a[2] == [3]:
  answer = 'Bad'

print(answer)

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()
count = 0
for i in range(len(S)-1):
    if S[i] == S[i+1]:
        count += 1

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

Submission status: Accepted

Solution code:
from sys import stdin

s = stdin.readline().rstrip()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

try:
    for i in range(4):
        if S[i] == S[i + 1]:
            print('Bad')
            break
except:
    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:
import sys
N=str(input())
for i in range(3):
  if N[i]==N[i+1]:
    print('Bad')
    sys.exit()
  else:
    pass
print('Good')

Submission status: Accepted

Solution code:
s = input()

sp = s[0]
ans = "Good"
for i in range(1, 4):
    if s[i] == sp:
        ans = "Bad"
        break
    sp = s[i]

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
print("Good" if all(a != b for a,b in zip(S[:3], S[1:])) else "Bad")

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:
s = str(input())
ans = 'Good'
for i in range(3):
    if i == 3:
        break
    elif s[i] == s[i+1]:
        ans = 'Bad'
print(ans)

Submission status: Accepted

Solution code:
#131a
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:
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=list(input())
S.sort
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, list(input())))
# s = [3, 7, 7, 6]
for i in range(1, len(s)):
    if s[i] == s[i - 1]:
        print('Bad')
        break
else:
    print('Good')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a= list(input())
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: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
sen = n // 1000
hyaku = (n - sen * 1000) // 100
juu = (n - sen * 1000 -  hyaku * 100) // 10
iti = n - sen * 1000 -  hyaku * 100 - juu * 10

if sen == hyaku or hyaku == juu or juu == iti:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

Solution code:
s = input()

def solve(s):
  for i in range(1, len(s)):
    if s[i]==s[i-1]:
      return False
  return True

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

Submission status: Accepted

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