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()
a = "Good"
for i in range(2):
    if s[i]==s[i+1]:
        a = "Bad"
        break
print(a)

Submission status: Wrong Answer

Solution code:
s=input()
r="good"
for i in range(len(s)-1):
  if s[i]==s[i+1]:
    r="bad"
    break
print(r)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = input()

t = ""
f = True

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

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

Submission status: Wrong Answer

Solution code:
N = input()
p = N[0]
for n in range(1,4):
  if p==N[n]:
    print('Bad')
    break
  p = N[n]
  print(n,p)
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
s = list(input())

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

Submission status: Wrong Answer

Solution code:
from sys import exit, stdin
S = stdin.readline().rstrip()
for i, c in enumerate(S):
    if S[i] == S[i-1]:
        print('Bad')
        exit()
print('Good')

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline

s = input()

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

Submission status: Wrong Answer

Solution code:
S=list(map(str ,raw_input().split()))
c =''
f = 0
for s in S:
    if s ==c:
        f= 1
    c = s
if f ==1:
    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')
        break
else:
  print('Good')

Submission status: Wrong Answer

Solution code:
hoge = input()
code = list(hoge)

bad = 0
for i in range(2):
  if code[i] == code[i+1]:
    bad += 1
    
if bad > 0:
  print("Bad")
else:
  print("Good")

Submission status: Wrong Answer

Solution code:
S = str(input())
n = 0
for i in range(len(S)):
    a = S.count(S[i])
    if (a > 1):
        n += 1
        break

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

  D = 1
  break
  
if D == 0:
  print("Good")

Submission status: Wrong Answer

Solution code:

s=int(input())

a=s//1000
b=s//100 - a*10
c=s//10-a*100-b*10
d=s%10

print(a,b,c,d)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

S = [c for c in S]

if len(S) == len(set(S)):
    print("Good")
else:
    print("Bad")

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")
        exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
n = set(input())

if len(n) == 4:
    print("Good")
else:
    print("Bad")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s=input()
d=[]
for i in range(4):
  d.append(s[i])
print('Good' if len(set(d))==4 else 'Bad')

Submission status: Wrong Answer

Solution code:
s = input()
prev = ''
b = True
for i in s:
    if i == prev:
        print("Bad")
        b = False
    prev = i
    
if b:
    print("Good")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=[i for i in input()]
print("Good" if len(s)==len(list(set(s))) else "Bad")

Submission status: Wrong Answer

Solution code:
l = []
for i in list(input()):
  if i in l:
    print('Bad')
    exit()
  l.append(i)
print('Good')

Submission status: Wrong Answer

Solution code:
s = input()

pre = 'a'

for i in s:
    if pre == i:
        print('Bad')
    pre = i

print('Good')

Submission status: Wrong Answer

Solution code:
SL = input()
S = [i for i in SL]
print("Bad" if len(set(S))!=len(SL) else "Good")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

can = True
for i in range(len(s)-2):
    if s[i] == s[i + 1]:
        can = False

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

Submission status: Wrong Answer

Solution code:
S = list(input())
S_ = set(S)
if len(S_)!=4:
    print("Bad")
else:
    print("Good")

Submission status: Wrong Answer

Solution code:
N = input()

form=""
for s in N:
    if form == s:
        print("Bad")
        break
    else:
        pass
    form = s
print("Good")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Time Limit Exceeded

Solution code:
while 1:
  pass

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
if a.count("00") > 0:
    print("Bad")
elif a.count("11") > 0:
    print("Bad")
elif a.count("22") > 0:
    print("Bad")
elif a.count("33") > 0:
    print("Bad")
elif a.count("44") > 0:
    print("Bad")
elif a.count("55") > 0:
    print("Bad")
elif a.count("66") > 0:
    print("Bad")
elif a.count("77") > 0:
    print("Bad")
elif a.count("88") > 0:
    print("Bad")
elif a.count("99") > 0:
    print("Bad")
else:
    print("Good")

Submission status: Accepted

Solution code:
a,b,c,d=input()
print("Bad" if a==b or b==c or c==d else "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()

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()
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] and S[1]!=S[2] and S[2]!=S[3]:
  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:
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 S[0] == S[1] or S[1] == S[2] or S[2] == S[3] else 'Good')

Submission status: Accepted

Solution code:
S = input()
res = False

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

print(['Good', 'Bad'][res])

Submission status: Accepted

Solution code:
a,b,c,d= list(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 = input()
ans = "Good"
for i in range(3):
  if S[i] == S[i+1]:
    ans = "Bad"
    break
print(ans)

Submission status: Accepted

Solution code:
n = input()
for i in range(len(n)-1):
  if n[i] == n[i+1]:
    print('Bad')
    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()
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 re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 6)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")
al = "abcdefghijklmnopqrstuvwxyz"
AL = al.upper()

s = v()
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:
#セキュリティコードは4桁の数字列
#入力しづらい＝連続した箇所がある場合　”Bad＂

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:
'''
問題：
    すぬけ君の管理する研究室の扉にはロックがかかっており、解錠にはセキュリティコードを入力する必要があります。

    セキュリティコードは 4 桁の数字列です。
    セキュリティコードが「入力しづらい」とは、同じ数字が連続する箇所が存在することを言います。

    現在のセキュリティコード S が与えられます。
    S が「入力しづらい」なら Bad を、そうでなければ Good を出力してください。
'''

'''
制約：
    S は半角数字のみからなる長さ 4 の文字列
'''

def abc131a(s: str) -> str:
    if s[0] == s[1]:
        return 'Bad'
    elif s[1] == s[2]:
        return 'Bad'
    elif s[2] == s[3]:
        return 'Bad'
    else:
        return 'Good'

s = str(input())
print(abc131a(s))

Submission status: Accepted

Solution code:
s = input()
tmp1 = s[0]
for i in range(1, len(s)):
    tmp2 = s[i]
    if tmp1 == tmp2:
        print('Bad')
        exit()
    else:
        tmp1 = tmp2
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'
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def atc_131a(input_value: str) -> str:
    for i in range(0, len(input_value) - 1):
        if input_value[i] == input_value[i + 1]:
            return "Bad"
    return "Good"

input_value = input()
print(atc_131a(input_value))

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:
#ABC131 A

S = str(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()
print("Bad") if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else print("Good")

Submission status: Accepted

Solution code:
S = input()
pre = '_'
flg = True
for s in S:
  flg = flg and (s != pre)
  pre = s
print('Good' if flg else 'Bad')

Submission status: Accepted

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

def main():
    a, b, c, d = input()
    print("Bad" if a == b or b == c or c == d else "Good")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = str(input())

# print(s[0])

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, j in zip(s[0:],s[1:]):
    if i == j:
        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()
pre = '_'
flg = True
for s in S:
  flg = flg and (s!=pre)
  pre = s
print('Good' if flg else '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 = 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('')

# Sが入力しづらければBad,そうでなければGood
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()

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

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:
moji = str(input())
flg = 0
for i in range(0,3):
    if moji[i] == moji[i+1]:
        flg = 1

print(("Good","Bad")[flg == 1])

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()
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 = 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:
# [0] == [1] or [1] == [2] or [2] == [3]だとBad

S = list(input())
# print(S[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:
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(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()
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 bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    S = SS()

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

    print(ans)

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
S = input()

D =[]
for i in range(3):
    if S[i] == S[i+1]:
        D.append(1)
        break


if 1 in D:
    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()

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

print(ans)

Submission status: Accepted

Solution code:
#"Bad"が二回出たり。"Bad""Good"になったりする。なぜだ？？　　
S = input()
Pass = list(S)

if Pass[0]==Pass[1]:
    print("Bad")
elif Pass[1]==Pass[2]:
    print("Bad")
elif Pass[2]==Pass[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:
lis = ["00","11","22","33","44","55","66","77","88","99"]
s = input()
ans = True
for i in lis:
  if i in s:
    ans = False
if ans:
  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(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 = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
for i in range(0,3):
    if S[i]==S[i+1]:
        print("Bad")
        break
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()

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:
n = input()
print('Bad' if n[0]==n[1] or n[1]==n[2] or n[2]==n[3] else '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()

code_list = []
for code in S:
    code_list.append(code)

answer = code_list[0] != code_list[1] != code_list[2] != code_list[3]

if answer:
    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:
n = list(input())

if n[0] == n[1]:
  print("Bad")
  exit()
elif n[1] == n[2]:
  print("Bad")
  exit()
elif n[2] == n[3]:
  print("Bad")
  exit()
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:
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()

res = ''
for s in S:
    if res == s:
        print('Bad')
        exit()
    res = s
print('Good')

Submission status: Accepted

Solution code:
# A - Security
# https://atcoder.jp/contests/abc131/tasks/abc131_a

s = input()

result = 'Good'
i = 0
j = 1
while j < len(s):
    if s[i] == s[j]:
        result = 'Bad'
        break

    i += 1
    j += 1

print(result)

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()
print("Good" if S[0] != S[1] != S[2] != S[3] else "Bad")

Submission status: Accepted

Solution code:
S = input()
for i in range(3):
    if S[i] == S[i + 1]:
        print('Bad')
        quit()
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 = list(input())
flag = 0
for i in range(len(s) - 1):
    if s[i] == s[i+1]:
        flag = 1

print('Bad' if flag == 1 else '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()
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 = str(input())
isBad = False
for i in range(3):
    if s[i]==s[i+1]:
        isBad = True
if isBad:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

Solution code:
def atc_131a(input_value: str) -> str:
    for i in range(0, len(input_value) - 1):
        if input_value[i] == input_value[i + 1]:
            return "Bad"
    return "Good"

input_value = input()
print(atc_131a(input_value))

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 = int(input())
a = [0]*4
a[0] = s//1000 
s = s-a[0]*1000
a[1] = s//100
s = s-a[1]*100
a[2] = s//10
s = s-a[2]*10
a[3] = s
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()
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:
a,b,c,d = input()
print('Good' if a != b and b != c and c != d else 'Bad')

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:
no=input()
l=len(no)
flag=0
for i in range(l-1):
    if no[i]==no[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")
    exit()
else:
  print("Good")

Submission status: Accepted

Solution code:
numbers = input()
i = 0
while i <= 2:
    if numbers[i] == numbers[i + 1]:
        print("Bad")
        exit()
    else:
        i += 1

print("Good")

Submission status: Accepted

Solution code:
numbers = input()
i = 0
x = 1
while i <= 2:
    if numbers[i] == numbers[x]:
        print("Bad")
        exit()
    else:
        i += 1
        x += 1

print("Good")

Submission status: Accepted

Solution code:

S = str(input())

if S[0] == S[1]:
    result = "Bad"
elif S[1] == S[2]:
    result = "Bad"
elif S[2] == S[3]:
    result = "Bad"
else:
    result = "Good"

print(result)

Submission status: Accepted

Solution code:
# A - Security

# 標準入力S
S = input()
x = 99
j = 0

for i in S:
    if x == i:
        j += 1
    else:
        x = i

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
# 同じ数字が二つ続いたらBad
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:
S = str(input())

# セキュリティコードは 4桁 の数字列です。
# セキュリティコードが「入力しづらい」とは、同じ数字が連続する箇所が存在することを言います。
# セキュリティコード S が「入力しづらい」なら Bad を、そうでなければ Good を出力してください。

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

def func():
    for x in range(len(a) - 1):
        if a[x] == a[x + 1]:
            return 'Bad'

    return 'Good'

print(func())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=list(str(input()))
for i in range(1,4):
    if S[i-1]==S[i]:
        print('Bad') 
        exit()

print('Good')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# コードを取得
S = str(input())

# リストに分割をして隣接する数値を比較
c_list = list(S)
cnt = 1
judge = "Good"
for cnt in range(1,4,1):
    if c_list[cnt-1] == c_list[cnt]:
        judge = "Bad"

# 結果を出力
print(judge)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
for i in range(10):
    if N.count(str(i)*3)or N.count(str(i)*2)or N.count(str(i)*4):
        print('Bad')
        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]:
    result = "Bad"
else:
    result = "Good"

# 出力
print(result)

Submission status: Accepted

Solution code:
S = input()

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

print('Good')

Submission status: Accepted

Solution code:
S = 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())
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[0] == S[1] == S[2] == S[3] or S[0] == S[1] == S[2] or S[1] == S[2] == S[3] or 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()
judge=0
for i in range(0,3):
    if S[i]==S[i+1]:
        judge+=1
if judge>=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")
    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()

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()
pre = S[0]
for s in S[1:]:
  if pre == s:
    print("Bad"); exit()
   
  pre = s
  
print("Good")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()
for i in range(9):
    hikaku = str(i)+str(i)
    #print(hikaku)
    if (hikaku in S) == True:
        result = "Bad"
        break
    else:
        result = "Good"
print(result)

Submission status: Accepted

Solution code:
initial_input_num_of_str = input()
double_eyes_list = ['00']

# 4桁の数字を、３つに分ける。最初２文字、真ん中２文字、後ろ２文字
first_numbers = initial_input_num_of_str[0:2]
center_numbers = initial_input_num_of_str[1:3]
last_numbers = initial_input_num_of_str[-2:]

for i in range(11, 100, 11):
    double_eyes_list.append(str(i))

if first_numbers in double_eyes_list:
    print('Bad')
elif center_numbers in double_eyes_list:
    print('Bad')
elif last_numbers in double_eyes_list:
    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()
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()
for i in range(3):
    if S[i] == S[i+1]:
        print('Bad')
        exit()
print('Good')

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
list01 = list(input())
if list01[0] == list01[1] or list01[1] == list01[2] or list01[2] == list01[3]:
    print('Bad')
else:
    print('Good')

Submission status: Accepted

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

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()
for i in range(len(S)-1):
    if S[i]==S[i+1]:
        print('Bad')
        exit()
print('Good')

Submission status: Accepted

Solution code:
# ABC131
# A Security
S  = input()
sl = len(S)
for i in range(sl-1):
    if S[i] == S[i+1]:
        print('Bad')
        exit()
print('Good')