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

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

Solution (Python):
s=input()
s1=list(s)
past=""
for s2 in s1:
    if s2==past:
        print("Bad")
        exit()
    else:
        past=s2

print("Good")

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


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

import sys


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

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

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

Solution (Python):
s = input()

ans = "Good"

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

print(ans)

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

Solution (Python):
s = input()
def main():
    for i in range(len(s)):
        if i == 0:
            continue
        if s[i] == s[i-1]:
            print('Bad')
            return 0
    print('Good')
    return 0
main()

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

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

Solution (Python):
from sys import stdin

n = stdin.readline().rstrip()
print("Good" if (n[0] != n[1]) and (
    n[1] != n[2]) and (n[2] != n[3]) else "Bad")

Solution (Python):

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

Solution (Python):









import sys



ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    s = input()

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



if __name__ == '__main__':
    main()

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

for x,y in enumerate(S):
    if x != len(S)-1:
        if y == S[x+1]:
            ans = "Bad"
            break
print(ans)

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

c = 0

for i in range(len(l)-1):
  if l[i] == l[i+1]:
    c += 1

if c >= 1:
  print('Bad')
else:
  print('Good')

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

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

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

out = "Good"

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

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

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

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

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

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

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

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

ans = 'Good'

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

print(ans)

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

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

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

for i in range(1,len(s)):
    if s[i-1] == s[i]:
        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()

for i in range(10):
	if str(i) * 2 in s:
		print('Bad')
		break
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()

n1 = S[0]

for n2 in S[1:]:
  if n2 == n1:
    print("Bad")
    exit()
  n1 = n2
print("Good")

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

Solution (Python):
S=input()
tmp=10
ans='Good'
for s in S:
    if s == tmp: ans='Bad'; break
    else: tmp=s
print(ans)

Solution (Python):



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

if __name__=='__main__':
  main()

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

Solution (Python):
import os, sys, re, math

S = input()

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

print(result)

Solution (Python):
aaa = input()
valid = True
for i in range(1, 4):
    if aaa[i-1] == aaa[i]:
        valid = False
print('Good' if valid else 'Bad')

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()
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(3):
  if S[i+1] == S[i]: flag = 1
print('Good' if flag == 0 else 'Bad')

Solution (Python):
s = input()

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

Solution (Python):
a,b,c,d=input()
print("Good" if a!=b!=c!=d 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):
import sys
s = list(input())

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

print("Good")

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


number = input()
ans = 0
for i in range(len(number)-1):
    if number[i] == number[i + 1]:
        ans += 1
    else:
        pass
if ans > 0:
    print("Bad")
else:
    print("Good")

Solution (Python):
S = input()

temp2 = 0
for i in range(0,10):
    temp1 = S.count(str(i)*2)
    if temp1 > 0:
        temp2 += 1

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

Solution (Python):
S = input()
judge = 0

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

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

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

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

Solution (Python):
s = list(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=input()
for i in range(1,len(s)):
    if s[i-1]==s[i]:
        print("Bad")
        exit()
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())

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

S = input()

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

print("Good")

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

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

def renzoku(s):
        
    while True: 
        for i in range(len(S)-1):
            if S[i]==S[i+1]:
                return 'Bad'
                
        return 'Good'

print(renzoku(S))

Solution (Python):
S = input()

prev = None
flag = False
for i in range(len(S)):
    if prev == S[i]:
        flag = True
        break
    prev = S[i]

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

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

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

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

Solution (Python):
S=input()
print("Bad" if any(S[i]==S[i+1] for i in range(3)) else "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 S[0]!=S[1] and S[1]!=S[2] and S[2]!=S[3] else "Bad")

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

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

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

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

Solution (Python):
s = input()
before = ""
flag = 0
for i in s:
    if before == i:
        flag = 1
    before = i
if flag == 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):
import sys

s = sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    ans = main()
    print(ans)

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

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

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

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

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

for i in range(3):
	if S[i] == S[i + 1]:
		cnt += 1

if cnt != 0:
	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()

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

from itertools import groupby
gr = groupby(list(s))

for k, g in gr:
    if len(list(g)) >= 2:
        print('Bad')
        break
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()

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

Solution (Python):
s = input()

for i, j in enumerate(s):
    if i<len(s)-1 and s[i+1]==j:
        print("Bad")
        exit(0)
print("Good")

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

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

Solution (Python):
S = input()

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

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

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

main()

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

Solution (Python):
S = input()

s = list(S)

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

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

Solution (Python):
import numpy as np
from sys import stdin
from copy import deepcopy
from functools import reduce
from fractions import gcd
import math
import itertools
from collections import Counter
from itertools import chain  
from heapq import heappush, heappop

"""
N = int(input())
A, B = map(int,input().split())
A = list(map(int,input().split())) 
A = [int(input()) for _ in range(N)] 
lst = [list(map(int,input().split())) for i in range(M)] 
"""

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

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

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

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

Solution (Python):
s=list(input())
f= s[0]==s[1] or s[1]==s[2] or s[2]==s[3]
print("Bad" if f==True else "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 = input()
buffer = S[0]

ans = "Good"

for i in range(1,len(S)):
    
    if buffer == S[i]:
        ans = "Bad"
        break

    buffer = S[i]

print(ans)

Solution (Python):
s = input()

ans = 'Good'
c1 = ''
for c2 in s:
  if c1 == c2:
    ans = 'Bad'
    break
  c1 = c2
  
print(ans)

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

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

print("Good")

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

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

Solution (Python):




def main():
    S = list(input())
    print('Good' if all([S[0] != S[1], S[1] != S[2], S[2] != S[3]]) else 'Bad')


if __name__ == "__main__":
    main()

Solution (Python):
S=input()
for i in range(len(S)-1):
    if S[i]==S[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")
else:
    print('Good')

Solution (Python):
S = list(input())
S = [int(i) for i in S]
t = 0
for i in range(3):
  if S[i] == S[i+1]:
    t += 1
  else:
    continue
if t == 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()
for i in range(len(S) - 1):
    if (S[i] == S[i + 1]):
        print('Bad')
        exit(0)
print('Good')

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

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

Solution (Python):
S = input()

prev = ""
bad = False
for i in range(4):
  if prev == S[i]:
    bad = True
    break
  prev = S[i]
  
if bad:
  print("Bad")
else:
  print("Good")

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

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

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] and S[1]!=S[2]and 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()
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):
import sys
s=list(input());

for i in range(3):
    if s[i]==s[i+1]:
        print("Bad")
        sys.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 = raw_input()
print "Bad" if S[0]==S[1] or S[1]==S[2] or S[2]==S[3] else "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())
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
n = len(s)
for i in range(1, n):
    if s[i - 1] == s[i]:
        flag = 0
if flag:
    print('Good')
else:
    print('Bad')

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

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

Solution (Python):
s = input()
l = [s for s,t in zip(s,s[1:]) if s==t]
print('Bad' if len(l) else '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()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
  print("Bad")
else:
  print("Good")

Solution (Python):
S=list(str(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=list(input())
print('Good' if s[0] != s[1] and s[1] != s[2] and s[2] !=s[3] else '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):

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

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

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 sys
row = sys.stdin.readline
 
ls = list(row())
s = sum([1 for i in range(1, len(ls)) if ls[i-1] != ls[i]])
print("Good" if s+1 == len(ls) else "Bad")

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 = list(input())
for i in range(1,4):
    if s[i-1] == s[i]:
        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):
import sys

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

Solution (Python):
S =list(input())
print( "Bad" if S[0]==S[1] or S[1]==S[2] or S[2]==S[3] else "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()

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

Solution (Python):
s = "Good"
c = '_'
for c2 in input():
  if c == c2:
    s = "Bad"
  c = c2
print(s)

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

Solution (Python):
S = input()

flg = False
for index in range(len(S)):
    if index != 0:
        mae = S[index-1]
        value = S[index]
        if mae == value:
            print("Bad")
            flg = True
            break
if flg == False:
    print("Good")

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

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

if flag==0:
    print("Good")

else:
    print("Bad")

Solution (Python):
S = input()

evalation = "Good"
for i in range(len(S)):
    try:
        if S[i] == S[i + 1]:
            evalation = "Bad"
    except:
        pass

print(evalation)

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

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

Solution (Python):
def main():
    s = input()

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

if __name__ == '__main__':
    main()

Solution (Python):
s=input()

flag=True

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

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

Solution (Python):
def main():
  s = input()
  for s1, s2 in zip(s[:-1], s[1:]):
    if s1==s2:
      return 'Bad'
  return 'Good'

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

Solution (Python):
s = input()

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

print( input_type )

Solution (Python):
S = input()

flag = 0;

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

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

print(res)

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

Solution (Python):
c = None
for i in list(input()):
    if c == i:
        print('Bad')
        break
    else: c = i
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()
before = S[0]

for s in S[1:]:
  if s == before:
    print('Bad')
    exit(0)
  before = s
  
print('Good')

Solution (Python):
def main():
    S = input()
    ans = "Good"

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



if __name__=="__main__":
    main()

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

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

Solution (Python):
import sys

S = input()

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

print('Good')

Solution (Python):
s = list(int(s) for s in input())

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

else:
    print('Good')

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

Solution (Python):

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

Solution (Python):
s = input()

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

Solution (Python):
li = [int(i) for i in list(input())]

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

Solution (Python):
n = input()

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

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

Solution (Python):
"""
author : halo2halo
date : 12, Jan, 2020
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

a, b, c, d = readline().decode('utf8').rstrip()
print('Bad' if a == b or b == c or c == d else '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()

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

Solution (Python):
S=input()

ans="Good"
for i in range(1,4):
    if S[i]==S[i-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(input())
prev = S[0]
ans = True
for i in range(1, 4):
    if S[i] == prev:
        ans = False
    prev = S[i]
print("Good" if ans else "Bad")

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

Solution (Python):
import sys

input = sys.stdin.readline


class AtCoder:
    def main(self):
        S = input().rstrip()

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



if __name__ == '__main__':
    AtCoder().main()

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

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

print("Good")

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