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-----
3776

-----Sample Output-----
Bad

The second and third digits are the same, so 3776 is hard to enter.

Difficulty: introductory

Starter code:

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

s = input()

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


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

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

else:
    print('Good')

s = input()

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

# [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')


s = input()
print("Good" if all(s[i-1] != s[i] for i in range(1, len(s))) else "Bad")

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)

def __starting_point():
    resolve()

__starting_point()

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

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

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

S = input()

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

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

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

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


s = list(input())

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

S=input()
number=[str(i)*2 for i in range(0,10)]

for j in number:
  if j in S:
    print('Bad')
    return
else:
  print('Good')


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

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

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


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


def __starting_point():
    main()


__starting_point()

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

s=input()

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

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

S = input()

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

S = input()

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

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

print("Good")

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

s = list(input())

judge = 'Good'

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

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

S = input()

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

print(ans)


n = list(input())

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

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

    セキュリティコードは 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)))



S = str(input())

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

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

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


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

S = input()

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


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

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


#!/usr/bin/env python3

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


def __starting_point():
    main()

__starting_point()

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

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


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

S = input()

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

S=list(input())

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

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


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


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

moji = str(input())
flg = 0
for i in range(0,3):
    if moji[i] == moji[i+1]:
        flg = 1

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

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

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

S = input()
res = False

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

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

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

s = input()
prev = s[0]
for i in range(1, 4):
    if s[i] == prev:
        print('Bad')
        return
    prev = s[i]
print('Good')


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

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

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

S = input()

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

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

print('Good')

#セキュリティコードは4桁の数字列
#入力しづらい＝連続した箇所がある場合　”Bad＂

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

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

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



S = str(input())

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

S = str(input())

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

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

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



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

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


S = list(input())

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

print(ans)

S = input()

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

s = list(input())

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


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


s = input()
for i, j in zip(s[0:],s[1:]):
    if i == j:
        print('Bad')
        break
else:
    print('Good')

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

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


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


s = input()

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

print("Good")


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

a,b,c,d= list(input())

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

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

s = input()

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

print("Good")


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

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

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

s = input()
tmp1 = s[0]
for i in range(1, len(s)):
    tmp2 = s[i]
    if tmp1 == tmp2:
        print('Bad')
        return
    else:
        tmp1 = tmp2
print('Good')


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

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

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

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

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

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

s = input()

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

s = input()

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

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

print("Good")

S = str(input())

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

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

s = str(input())

a = s[0]
b = s[1]
c = s[2]
d = s[3]

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

else:
    print("Good")

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


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