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

Solution (Python):
S = input()

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

Solution (Python):
s = input()
cnt = 0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        cnt+=1
if cnt>=1:
    print("Bad")
else:
    print("Good")

Solution (Python):
s = input()

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

Solution (Python):
s=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')

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

Solution (Python):
s=list(map(int, input()))
ans="Good"
for i in range(len(s)):
  if i == 0:
    continue
  if s[i] == s[i-1]:
    ans = "Bad"
    
print(ans)

Solution (Python):
import sys
import math
import numpy as np
stdin = sys.stdin
mod = 10**9 + 7

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

s = ns()

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

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

Solution (Python):
S=input()
a=(str(S)[0])
b=(str(S)[1])
c=(str(S)[2])
d=(str(S)[3])
if(int(a)==int(b)):
  print("Bad")
elif(int(b)==int(c)):
  print("Bad")
elif(int(c)==int(d)):
  print("Bad")
else:
    print("Good")

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

Solution (Python):
s = input()

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

Solution (Python):
s = input()

pre_s_i = ''

ans = 'Good'

for s_i in s:
  if pre_s_i == s_i:
    ans = 'Bad'
    break
  
  pre_s_i = s_i
  
print(ans)

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    s=STR()
    frag=1
    for i in range(3):
        if s[i]==s[i+1]:
            frag=0
    if frag==1:
        print('Good')
    else:
        print('Bad')
if __name__ == '__main__':
    do()

Solution (Python):
S = list(input())

S1 = S[0]
count = 0
for i in range(1,4):
  if S1 != S[i]:
    count += 1
    S1 = S[i]
if count == 3:
  print("Good")
else:
  print("Bad")

Solution (Python):
def is_secure(S):
    for i in range(len(S)-1):
        if S[i] == S[i+1]:
            return 'Bad'
    return 'Good'


print(is_secure(input()))

Solution (Python):
S = list(input())

for i, x in enumerate(S):
    if i == len(S)-1:
        print('Good')
        break
    elif S[i] == S[i+1]:
        print('Bad')
        break
    else:
        pass

Solution (Python):
s = input()

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

Solution (Python):
from sys import stdin


def fetch_one_line():
    return stdin.readline().rstrip()


def fetch_int_input():
    return [int(s) for s in fetch_one_line().split()]


def fetch_inputs(times):
    return [fetch_one_line() for _ in range(times)]

def fetch_int_inputs(times):
    return [[int(s) for s in fetch_one_line()] for _ in range(times)]

def fetch_ints_inputs(times):
    return [fetch_int_input() for _ in range(times)]



nums = fetch_one_line()
tmp = ""

flag = True
for n in nums:
    if tmp == n:
        flag = False
        break
    tmp = n

answer = ["Bad", "Good"]
print(answer[int(flag)])

Solution (Python):
s = input()
ans=0

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

Solution (Python):
s = input()
for t in range(3):
    if s[t]==s[t+1]:
        print('Bad')
        exit()
print('Good')

Solution (Python):
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")

Solution (Python):
n = str(input())
h = 0
for i in range(len(n)-1):
  if(n[i] == n[i+1]):
    h += 1
if (h == 0):
  print("Good")
else:
  print("Bad")

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

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

Solution (Python):
s = input()

ans = 0

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

Solution (Python):
s = list(map(int, input()))

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

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

Solution (Python):
S = open(0).read()
prev_s=S[0]
for s in S[1:]:
    if s == prev_s:
        print("Bad")
        break
    prev_s = s 
else:
    print("Good")

Solution (Python):
a = input()

print("Good" if len([None for i in range(len(a) - 1) if a[i] == a[i + 1]]) == 0 else "Bad")

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

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

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

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

def main():
    s = input()
    pre = ''
    for i in list(s):
        if pre == i:
            print('Bad')
            break
        pre = i
    else:
        print('Good')

if __name__ == '__main__':
    main()

Solution (Python):
S = input()

if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:
  ans = 'Bad'
else:
  ans = 'Good'

print(ans)

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

Solution (Python):
s = input()

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

Solution (Python):
S = str(input())

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

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

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

Solution (Python):

s = input()
t= "Good"

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

Solution (Python):
S = input()
flg = True

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

print('Good') if flg == True else print('Bad')

Solution (Python):
s = input()

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

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

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

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

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

Solution (Python):
import sys

S = str(input())

before = ''
for s in S:
    if s == before:
        print('Bad')
        sys.exit()
    before = s
print('Good')

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

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

Solution (Python):
S = input()

def checkDigits(S):
    for i in range(1,len(S)):
        if S[i] == S[i-1]:
            return 'Bad'
    return 'Good'

print(checkDigits(S))

Solution (Python):
s = input()

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

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

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

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

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

Solution (Python):
lst=input()
flg=True
for i in range(3):
    if lst[i]==lst[i+1]:
        flg=False
print("Good" if flg else "Bad")

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

Solution (Python):
S=input()
K=str(S)
count = 0
for i in range(len(K)-1):
    if K[i]==K[i+1]:
        count += 1
if count == 0:
    print("Good")
else:
    print("Bad")

Solution (Python):
s = str(input())

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

else:
    print('Bad')

Solution (Python):
def examA():
    S = SI()
    ans = "Good"
    for i in range(len(S)-1):
        if S[i+1]==S[i]:
            ans = "Bad"
    print(ans)
    return

def examB():
    return

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

if __name__ == '__main__':
    examA()

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

Solution (Python):
s = input()

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

print(ans)

Solution (Python):
s = input()
tmp = s[0]
check = True
for i in range(1, len(s)):
    if tmp == s[i]:
        check = False
    tmp = s[i]
if check:
    print("Good")
else:
    print("Bad")

Solution (Python):
a = list(input())

if a[0] == a[1] or a[1]==a[2] or a[2]==a[3]:
    print("Bad")

else:
    print("Good")

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

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

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

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

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

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

Solution (Python):
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")

Solution (Python):
A = list(map(int,input()))


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

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

Solution (Python):
a = input()
b = a[0]
for i in range(1,4):
  if b == a[i]:
    print("Bad")
    break
  b=a[i]
else:
  print("Good")

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

Solution (Python):
a,b,c,d = list(input())
if a==b or b==c or c==d:
    print("Bad")
else:
    print("Good")

Solution (Python):





a = list(input())

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

Solution (Python):
s = list(input())

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

Solution (Python):
S = input()

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

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

Solution (Python):
S = list(input())

prev = S[0]
flag = True
for i in range(1, 4):
    if prev == S[i]:
        flag = False
        break
    prev = S[i]

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

Solution (Python):
import sys

string = input()

previous = "-" 
for ch in string:
  if previous == ch:
    print("Bad")
    sys.exit(0)
  previous = ch

print("Good")

Solution (Python):
S = input()

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

print("Good")

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

Solution (Python):
a,b,c,d=map(int,input())
if a==b or b==c or d==c:
    print("Bad")
else:
    print("Good")

Solution (Python):
S = input()

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

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

Solution (Python):
s = input()

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

print("Good")

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

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

Solution (Python):
S = input()
print('Good' if all([S[i] != S[i+1] for i in range(3)]) else 'Bad')

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

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

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

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

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

Solution (Python):
S = list(input())
ans = "Good"
for i in range(0, 3):
    if S[i] == S[i+1]:
        ans = "Bad"
        break
print(ans)

Solution (Python):


S = input()

ans = False
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    ans = True

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

Solution (Python):
S=list(input())

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

print("Good")

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

Solution (Python):
S = str(input())
ans = "Good"

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

print(ans)

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

Solution (Python):
n=list(map(int,input()))
count=0
for i in (range(3)):
    if n[i]==n[i+1]:
        count+=1
if count>=1:
    print("Bad")
else:
    print("Good")

Solution (Python):
S = str(input())

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

Solution (Python):
import sys
import math

MOD = 10 ** 9 + 7


def main():
    S = input()

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

    print('Good')


if __name__ == '__main__':
    main()

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

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

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

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

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

Solution (Python):
s=int(input())
P=str(s).zfill(4)
if (P[0]==P[1]) or (P[1]==P[2]) or (P[2]==P[3]):
  print("Bad")
else:
  print("Good")

Solution (Python):
s = input()

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

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

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

Solution (Python):
S = list(input())
Flag = True
for i in range(0,3):
  a = S[i]
  b = S[i+1]
  if a == b:
    Flag = False
if Flag == True:
  print('Good')
else:
  print('Bad')

Solution (Python):


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

Solution (Python):


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

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

Solution (Python):

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

Solution (Python):

S = list(input())
count = 0
bad = False

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




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

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

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

Solution (Python):

import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

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

Solution (Python):

import math
import datetime





S = str(input())

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

Solution (Python):


S = input()

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

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

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

Solution (Python):
s=input()

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

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

Solution (Python):
s=str(input())
l=list(s)
if(l[0]!=l[1] and l[1]!=l[2] and l[2]!=l[3]):
  print("Good")
else:
  print("Bad")

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

Solution (Python):
S = input()
a = S[0]
out = "Good"
for i in range(1, len(S)):
    if S[i] ==  a:
        out = "Bad"
    a = S[i]

print(out)

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

Solution (Python):
s = input()
flag = 1

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

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

Solution (Python):
s = input()

if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
  ans = False
else:
  ans = True
  
if ans:
  print("Good")
else:
  print("Bad")

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

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

print("Good")

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

Solution (Python):
S = str(input())
cnt = 0

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

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

Solution (Python):

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

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

Solution (Python):
S = list(input())

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

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

Solution (Python):
s = list(input())

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

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

Solution (Python):
s = input()

prev = ''
ans = 'Good'

for char in s:
  if char == prev:
    ans = 'Bad'
    break
  prev = char

print(ans)

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

Solution (Python):
s = input()
flag = True
for i in range(3):
  if s[i] == s[i+1]:
    flag = False

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

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

Solution (Python):
a=input()
b=False
for i in range(3):
 if a[i+1]==a[i]:
  b=True

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

Solution (Python):
S = list(map(int,input()))
Flag = True

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

Solution (Python):

def main():
    s = input()
    for i in range(len(s) - 1):
        if(int(s[i]) - int(s[i+1]) == 0):
            print("Bad")
            return
    print("Good")

main()

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

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

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

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

Solution (Python):
s = input()
pre = s[0]
res ="Good"
for str in s[1:]:
  if str == pre:
    res = "Bad"
  pre = str
    
print(res)

Solution (Python):
S = input()
ans = 'Good'
for i,n in enumerate(S):
    if i < 3:
        if n == S[i+1]:
            ans = 'Bad'
print(ans)

Solution (Python):
import sys
input = sys.stdin.readline
def print_ans(S):
    """Test Case
    >>> print_ans("3776")
    Bad
    >>> print_ans("8080")
    Good
    >>> print_ans("1333")
    Bad
    >>> print_ans("0024")
    Bad
    """
    flg = True
    tmp = ""
    for s in S:
        if tmp == s:
            flg = False
            break
        tmp = s
    if flg:
        print("Good")
    else:
        print("Bad")



if __name__ == '__main__':
    S = input().rstrip()
    print_ans(S)

Solution (Python):
S = input()

ans = 'Good'

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

print(ans)

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

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

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

Solution (Python):
s=input()
p = ''
flg = 0
for i in s:
    if i == p:
        flg+=1
    p = i
print("Bad" if flg != 0 else "Good")

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

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

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

Solution (Python):
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")

Solution (Python):

import sys, math
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans=count=0

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

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

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

Solution (Python):
s = str(input())

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

Solution (Python):
s = str(input())

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

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

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

Solution (Python):
from collections import defaultdict,deque, Counter
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())
ans = 'Good'

S = input()
for _ in range(len(S)-1):
    if S[_] == S[_+1]: ans = 'Bad'


print(ans)

Solution (Python):
S = input()

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

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

Solution (Python):
def inpl():
    return list(map(int, input().split()))


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

Solution (Python):

import sys










def main():
    s = sys.stdin.readline().rstrip()
    for i in range(3):
        if s[i] == s[i+1]:
            ans = 'Bad'
            break
    else:
        ans = 'Good'
    
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

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

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

Solution (Python):
s = input()

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

Solution (Python):
s = list(input())
pre = ""
ans = "Good"
for i in s:
  if pre == i:
    ans = "Bad"
  pre = i
print(ans)

Solution (Python):

import sys
def input():
    return sys.stdin.readline().rstrip()

def main():
    S = input()
    p = 'a'
    for c in S:
        if c is p:
            print('Bad')
            break
        else:
            p = c
    else:
        print('Good')


if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()

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

Solution (Python):
s = input().strip()

flg = True

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

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

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

Solution (Python):
s = input()
a = True
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        a = False

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

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

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

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

Solution (Python):

n = input()



l = list(n)



ans = 'Good'

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

print(ans)

Solution (Python):
s=list(str(input()))
count=0
for i in range(3):
  if s[i]==s[i+1]:
    count+=1

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

Solution (Python):
s = str(input())

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

print(res)

Solution (Python):
S =list(input())

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

Solution (Python):
import re

s = input()

if re.search(r"(.)\1", s):
    print("Bad")
else:
    print("Good")

Solution (Python):
S=str(input())
count = 0
for i in range(4):
    count+=1
    if S[i:i+1]==S[i+1:i+2]:
        print('Bad')
        break
    elif count == 3:
        print('Good')