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

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,4):
  if S[i-1] != S[i]:
    pass
  else:
    print('Bad')
    exit()
print('Good')

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

ans=0
for i in range(int(len(a))-1):
    if a[i]==a[i+1]:
        ans+=1
    else:
        ans+=0

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

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):
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()
if (s[0]==s[1]) or (s[2]==s[1]) 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):
def A_Security():
    S = list(input())
    output = "Good"
    for x in range(len(S)-1):
        if S[x] == S[x+1]:
            output = "Bad"
    print(output)
    
if __name__ =="__main__":
    A_Security()

Solution (Python):
def solve(string):
    return "Bad" if any([s1 == s2 for s1, s2 in zip(string, string[1:])]) else "Good"


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

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

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

tmp = None
ans = 'Good'
for s in S:
    if s == tmp:
        ans = 'Bad'
        break
    tmp = s

print(ans)

Solution (Python):
S = input()
S = list(map(int,S))
prior = None
ans = 'Good'
for i in S:
  if prior == i:
    ans = 'Bad'
    break
  else:
    prior = i
print(ans)

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

Solution (Python):
import io
import sys


def IN_S():
  return input()


def IN_I():
  return int(input())


def IN_L_I():
  return list(map(int, input().split()))


def IN_L_S():
  return list(map(str, input().split()))


def STR_SPLIT(s, n):
  for l in range(0, len(s), n):
    yield s[0 + l:n + l]


def T_IN():
  global test_str
  sys.stdin = io.StringIO(test_str[1:-1])


test_str = '''
1234
'''


def MAIN():
  
  A()


def A():
  s = IN_S()

  p = ""
  for i in s:
    if len(p) != 0:
      if p == i:
        print("Bad")
        exit()
    p = i

  print("Good")


  return None
 

def B():
  return None


def C():
  return None


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):
import re
S = input()

pat = r"(\d)\1"

res = re.search(pat, S)


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

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

flag = True
pre = None
for i, value in enumerate(s):
  if i != 0:
    if pre == value:
      flag = False
      break

  pre = value
    
if flag:
  print("Good")
else:
  print("Bad")

Solution (Python):
st = input()

b = [x for x,y in zip(st, st[1:]) if x==y]

if len(b) == 0:
    print('Good')
else:
    print('Bad')

Solution (Python):
S = input()

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

Solution (Python):
s = input()

count = 0

for i in range(len(s)-1):
    diff = int(s[i]) - int(s[i+1])
    if diff == 0:
        count += 1
    else:
        count += 0

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

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

def main():
    S = input()
    flag = 1
    for i in range(1, len(S)):
       if S[i] == S[i-1]:
           print("Bad")
           flag=0
           break
       else:
           pass
    if flag:
        print("Good")

if __name__ == '__main__':
    main()

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

Solution (Python):
import logging

logging.basicConfig(level=logging.INFO, format="%(message)s")
logging.disable(logging.CRITICAL)

def main():
    pass_num = input()
    for i in range(3):
        if pass_num[i] == pass_num[i + 1]:
            print("Bad")
            exit()

    print("Good")
    
if __name__ == "__main__":
    main()

Solution (Python):
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
import sys
from collections import deque, defaultdict, Counter; from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect import bisect_left, bisect_right, insort_left, insort_right
from operator import itemgetter as ig
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20; INF = float("INF"); ans = 0; tmp = 0; ansli = []; tmpli = []; candili = []
eps = 1.0 / 10 ** 10; mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]; ddn = dd + [(-1, 1), (1, 1), (1, -1), (-1, -1)]; ddn9 = ddn + [(0, 0)]
"""for dx, dy in dd:
        nx = j + dx; ny = i + dy
            if 0 <= nx < w and 0 <= ny < h:"""
def wi(): return list(map(int, sys.stdin.readline().split()))
def wip(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def ws(): return sys.stdin.readline().split()
def i(): return int(sys.stdin.readline())
def s(): return input()
def hi(n): return [i() for _ in range(n)]
def hs(n): return [s() for _ in range(n)]
def mi(n): return [wi() for _ in range(n)]
def mip(n): return [wip() for _ in range(n)]
def ms(n): return [ws() for _ in range(n)]

s = s()

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

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

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

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):
def main07():
    data = input()
    hantei = True
    for i in range(3):
        if data[i] == data[i+1]:
            hantei = False
    if hantei:
        print("Good")
    else:
        print("Bad")
    
if __name__ == "__main__":
    main07()

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

for b in range(0,len(a)-1):
    if a[b] == a[b+1]:
        print('Bad')
        break
else:
    print('Good')

Solution (Python):
s = input()

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

Solution (Python):
S = input()

l = len(S)

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

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):
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=input()
for i in range(1,len(S)):
    if S[i-1]==S[i]:
        print("Bad")
        sys.exit()
print("Good")

Solution (Python):
s = input()
bad = False
for i, v in enumerate(s[:-1]):
  if s[i+1] == v:
    bad = True
print("Bad" if bad else "Good")

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

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

if cnt == 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=input();a=[eval(s[i+1]+"-"+s[i]) for i in range(3)];print("GBoaodd"[a.count(0)!=0::2])

Solution (Python):
dnumber = input()
for a in range(0, len(dnumber)-1):
    if dnumber[a] == dnumber[a+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]:
    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()
bef = ''
for i in S:
        if bef == '':
                bef = i
                continue
        else:
                if i == bef:
                        print('Bad')
                        exit()
                else:
                        bef = i

print('Good')

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

Solution (Python):
S = input()

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

if result == 0:
    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):
nums = list(map(int,list(input())))

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

Solution (Python):
prev = ""
flg = False
for i in input():
    if flg == True:
        break
    elif prev == i:
        flg = True
    prev = i

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

Solution (Python):
S=input()
isBad=False
for i in range(1,len(S)):
    if S[i]==S[i-1]:
        isBad=True
if isBad:
    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[3] == s[2]:
    print("Bad")
else:
    print("Good")

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

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 = [int(a) for a in 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()
l = list(S)
count = 0
for i in range(1,4) :
  if l[i] == l[i-1] :
    count += 1
  else :
    pass
if count == 0 :
  print('Good')
else :
  print('Bad')

Solution (Python):
S = str(input())
S = [S[i] for i in range(len(S))]
n1 = None
for i in S:
    n2 = i
    if n1==n2:
        print('Bad')
        exit()
    else:
        n1 = i
        continue
print('Good')

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

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

Solution (Python):
a = list(map(str,input().split()))
i = a[0]

lst = list(i)

flag = 0;
for k in range(3):
  if lst[k] == lst[k+1]:
    flag = 1
    
if flag == 1:
  print("Bad")
else:
  print("Good")

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

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

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

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

print(ans)

Solution (Python):
securityCode = input()

t = 0

for i in range(3):
  if securityCode[i] == securityCode[i+1]:
    t = 1

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

Solution (Python):
x =  [int(s) for s in  list(input())]
num = []
for s in x:
    if(len(num) == 0):
        num.append(s)
    else:
        if(num[len(num)-1] == s):
            print('Bad')
            break
        else:
            num.append(s)

if(len(num) == 4):print('Good')

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

Solution (Python):


str = input() 


str_leg = len(str)




check = 1; 

for i in range(0, str_leg - 1):
    for j in range(i+1, str_leg):
        if (str[i] == str[j] and j == i + 1) :
             check = 0; 

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

Solution (Python):
import sys
i = input()
i = list(map(int,list(i)))
for k in range(3):
  if i[k] == i[k+1]:
    print("Bad")
    sys.exit()
print("Good")

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

if checker:
    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):
print("Bad" if [sum([x[i]==x[i+1] for i in range(len(x)-1)]) for x in [str(input())]]!=[0] else "Good")

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

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

Solution (Python):
s = input()
x = [s[i:i+1] for i in range(len(s))]
if x[0] != x[1] and x[1] != x[2] and x[2] != x[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):
l_s = list(map(int,input()))
n = len(l_s)
for i in range (1,n):
    if l_s[i]==l_s[i-1]:
        print('Bad')
        break
else:
    print('Good')

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

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

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

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

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

Solution (Python):
pas = input()
for pre, pos in zip(pas[:-1], pas[1:]):
  if pre == pos:
    print('Bad')
    break
else:
  print('Good')

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()
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()
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 check(s):
    ret = 'Good'
    pre = None
    for c in s:
        if c == pre:
            ret = 'Bad'
            break;
        else:
            pre = c
    return ret
        
print(check(S))

Solution (Python):
S = input()

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

Solution (Python):
if __name__ == "__main__":
    S = input("")
    oldi = -1
    for i in S:
        if i == oldi:
            print("Bad")
            exit()
        oldi = i
    print("Good")

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


flag = True

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

if flag:
    print("Good")

Solution (Python):
S = list(input())
answer = ""
check = S[0]
flag = True
for i in range(1,len(S)):
    if(check == S[i]):
        flag = False
        answer = "Bad"
        break
    else:
        check = S[i]
if(flag):
    answer = "Good"
print(answer)

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

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

Solution (Python):
S=int(input())
A=[]
i=0
for x in range(0,4):
    A.append(S%10)
    S=S//10
if A[0]==A[1]:
    i=1
if A[1]==A[2]:
    i=1
if A[2]==A[3]:
    i=1
if i==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):
import sys
S = input()

prev = ""
for i in S:
  if i == prev:
    print("Bad")
    sys.exit(0)
  prev = i
  
print("Good")

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

Solution (Python):
s = input()
isGood = True
tmp = ''
for i in s:
    if i == tmp:
        isGood = False
    tmp = i
if isGood == True:
    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()

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

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

Solution (Python):
S = input()
tmp = ""
for s in S:
    if tmp == s:
        print("Bad")
        exit()
    tmp = s
print("Good")

Solution (Python):
import sys

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    s = inputs[0]

    prev_c = s[0]

    for i in range(1, len(s)):
        if prev_c == s[i]:
            return "Bad"
        prev_c = s[i]

    return "Good"


def string_to_int(string):
    return list(map(lambda x: int(x), string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

Solution (Python):
s = input()

before_k = ''
flag = True
for k in s:
  if before_k == k:
    flag = False
  before_k = k

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

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

Solution (Python):
A=str(input () )
B=0
while B!=3:
    if A[B]==A[B+1]:
        print('Bad')
        break
    else:    
        B=B+1
else:
    print('Good')

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

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

Solution (Python):

s=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):
a = int(input())
b = a%10
c = int(((a-b)/10)%10)
d = int(((a-b-c*10)/100)%10)
e = int(((a-b-c*10-d*100)/1000)%10)
mylst = [e, d, c, b]
if e == d:
    print("Bad")
elif d == c:
    print("Bad")
elif c == b:
    print("Bad")
else:
    print("Good")

Solution (Python):
num = input()
if any([i == j for i, j in zip(num[:-1], num[1:])]):
    print('Bad')
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):
a = input()
flag = True
for i in range(0, len(a)-1):
    if(a[i] == a[i+1]):
        flag = False
if(flag):
    print("Good")
else:
    print("Bad")

Solution (Python):
S=list(map(int,list(input())))
frg=True
for n,s in enumerate(S):
    if n!=0:
        if S[n-1]==s:
            frg=False
            break
print("Good") if frg else print("Bad")

Solution (Python):
s=input()
for i in range(3):
    if s[i]==s[i+1]:
        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):
sti = input()
if sti[0] == sti[1] or sti[1] == sti[2] or sti[2] == sti[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()
a = 0
for i in range(1,4):
    if s[i]==s[i-1]:
        print('Bad')
        a = 1
        break
if a == 0:
    print('Good')

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

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

Solution (Python):
s = input()
for x in range(1, len(s)):
    if(s[x-1] == s[x]):
        print("Bad")
        exit()
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):
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):
s=list(map(int, input()))
u=0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        print("Bad")
        break
    else:    u+=1
    if u == len(s) -1:
        print("Good")

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

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

Solution (Python):
N = input()

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

Solution (Python):
import collections


S = list(input())

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

print(answer)

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):
list = [int(x)for x in input()]
count =0
for i in range(3):
  if list[i] == list[i+1]:
    count +=1
if count ==0:
  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):
a = ''
b = True
for x in list(input()):
    if a == x:
        b = False
    a = x
if b:
    print('Good')
else:
    print('Bad')

Solution (Python):
a = ''
b = True
for x in list(input()):
    if a == x:
        b = False
        break
    a = x
if b:
    print('Good')
else:
    print('Bad')

Solution (Python):
a = ''
b = True
for x in list(input()):
    if a == x:
        b = False
        break
    a = x
if b:
    print('Good')
else:
    print('Bad')

Solution (Python):
def chechcode(code):
    a = None
    for i in code:
        if a == i:
            return "Bad"
        a = i
    return "Good"

code = input()
print(chechcode(code))

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

Solution (Python):
s = input()

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

Solution (Python):
S = input()
number = dict()
flag = False

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

Solution (Python):
s = input()
tmp = ''

for c in s:
    if tmp==c:
        print('Bad')
        exit()
    else:
        tmp = c

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):
a=list(input())
winFlag=True
for i,it in enumerate(a[1:]):
    if(a[i]==it):
        winFlag=False
if winFlag==True:
    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] or s[1] == s[2] or s[2] == s[3]:
    print("Bad")
else:
    print("Good")

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

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

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

ans = 0
for i in range(3):
    if s[i] == s[i + 1]:
        ans += 1
        break
    else:
        continue

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

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

Solution (Python):
import sys
s = input()
pre = ''
for i in s:
  if pre == i:
    print('Bad')
    sys.exit()
  pre = i
print('Good')

Solution (Python):
import sys
s = input()
pre = ''
for i in s:
  if pre == i:
    print('Bad')
    sys.exit()
  pre = i
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):
def main():
    s = list(map(int,raw_input()))
    flag = True
    for i in range(len(s)-1):
        if s[i] == s[i+1]:
            flag = False
    if flag == True:
        print("Good")
    else:
        print("Bad")





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:1]==S[1:2] or S[1:2]==S[2:3] or S[3:4]==S[2:3]:
    print("Bad")
else:
    print("Good")

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

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

Solution (Python):
s = input()

prev = ""
is_good = True
for x in s:
  if prev == x:
    is_good = False
  prev = x
  
if is_good:
  print("Good")
else:
  print("Bad")

Solution (Python):
def main():
    s_list = list(input())
    f = s_list[0] == s_list[1] or s_list[1] == s_list[2] or s_list[2] == s_list[3]
    message = 'Bad' if f else 'Good'
    print(message)


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):
def resolve():
	s=input()
	for i in range(len(s)-1):
		if s[i]==s[i+1]:
			print('Bad')
			break
	else:
		print('Good')
resolve()

Solution (Python):
ls = list(map(int,input()))
for i in range(len(ls)-1):
  if(ls[i] == ls[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):
pi=""
j="Good"
for i in input():
  if pi == i:
    j="Bad"
  pi=i
print(j)

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

Solution (Python):
s = input()
ans = True
for i in s:
    if(s.count(i+i)):
        ans = False
if ans == True:
    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):
s1 = input()

r1 = "Good"

for i1 in range(3):
    if s1[i1] == s1[i1 + 1]:
        r1 = "Bad"

print(r1)

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 re

security_code = input()
regex = r'.*(.)\1.*'
result = re.match(regex, security_code)

if result is None:
  print('Good')
else:
  print('Bad')

Solution (Python):
count=0

security=input()
sec_list=list(security)

for s in range(0,len(security)-1):
    if sec_list[s]==sec_list[s+1]:
        count+=1

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

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

Solution (Python):
S = input()
tmp = 'a'
for x in S:
    if tmp == x:
        print("Bad")
        quit()
    tmp = x
print("Good")