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

s = input()

before_s = ""
for ss in s:
    if ss == before_s:
        print("Bad")
        sys.exit()
    before_s = ss

print("Good")

Solution (Python):
ls_s = [i for i in input()]

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

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):
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
input=lambda :sys.stdin.readline().rstrip()
def resolve():
    from itertools import groupby
    G=groupby(input())
    print("Good" if(len(list(G))==4) else "Bad")
resolve()

Solution (Python):
import unittest


class TestA(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think('3776'), 'Bad')

    def test_2(self):
        self.assertEqual(think('8080'), 'Good')

    def test_3(self):
        self.assertEqual(think('1333'), 'Bad')

    def test_4(self):
        self.assertEqual(think('0024'), 'Bad')


def solve():
    s = read()
    result = think(s)
    write(result)


def read():
    length_of_string = 4
    return read_line(n=length_of_string)


def read_int(n):
    return list(map(lambda x: int(x), read_line().split(' ')))[:n]


def read_float(n):
    return list(map(lambda x: float(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(data):
    for i in range(len(data) - 1):
        if data[i] == data[i + 1]:
            return 'Bad'
    return 'Good'


def write(result):
    print(result)


if __name__ == '__main__':
    
    solve()

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

Solution (Python):
s = 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]:
    print("Bad")
else:
    print("Good")

Solution (Python):
S = input()

hantei = 0
for i in range(3):
    if(S[i]==S[i+1]):
        hantei = -1
        break

print("Good") if hantei == 0 else print("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()
p = ''
for i in S:
  if p == i:
    print('Bad')
    exit()
  else:
    p = i
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()
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()

f = 0

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

Solution (Python):
def p_a():
    n = input()
    b = ""
    for i in n:
        if b == i:
            print("Bad")
            exit()
        b = i
    print("Good")

def p_b():
    pass


def p_c():
    pass


def p_d():
    pass


def p_e():
    pass


def p_f():
    pass


if __name__ == '__main__':
    p_a()

Solution (Python):
def main():
  line = input()
  for i in range(len(line)):
    if i >= 1:
      if line[i] == line[i-1]:
        print("Bad")
        return
  print("Good")
  return

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

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

if list_S[0] == list_S[1] or list_S[1] == list_S[2] or list_S[2] == list_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 = input()

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

print('Good')

Solution (Python):
s=list(str(input()))
a=[s[0]]
for i in range(1,4):
    if s[i]!=s[i-1]:
        a.append(s[i])
if len(a)==4:
    print("Good")
else:
    print("Bad")

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

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

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

Solution (Python):
S = input()
for i in range(10):
    if (str(i) + str(i)) 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()
b = 'x'
ans = 'Good'
for c in s:
    if c == b:
        ans = 'Bad'
        break
    b = c

print(ans)

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

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

Solution (Python):
import sys
s = input()

if s[0]==s[1]:
  print("Bad")
  sys.exit()
if s[1]==s[2]:
  print("Bad")
  sys.exit()
if s[2]==s[3]:
  print("Bad")
  sys.exit()
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):
p=list(input())
f=0
for i in range(len(p)-1):
  if p[i]==p[i+1]:
    f+=1
    break
if f>0:
  print("Bad")
else:
  print("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=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 = list(input())
bad = False
for i in range(1, len(S)):
	if S[i] == S[i - 1]:
		bad = True

print("Bad" if bad else "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):
import sys
s = str(input())
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        print('Bad')
        sys.exit()
print('Good')

Solution (Python):

S = list(map(int, input()))

cur = S[0]
flag = 'Good'
for i in range(1,4):
	if S[i]==cur:
		flag = 'Bad'
	cur = S[i]

print(flag)

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

Solution (Python):
S=input()

count=0
for i in range(0,3):
    if S[i]!=S[i+1]:
        count+=1

if(count==3):
    print("Good")
else:
    print("Bad")

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

for i in range(3):
  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(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):
s = input()
for i in range(1,4):
  if s[i]==s[i-1]:
    print("Bad")
    exit()
print("Good")

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

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

if flag == 1:
    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):
def main():
    array = list(input())
    for i in range(len(array)-1):
        if array[i] == array[i+1]:
            print('Bad')
            return
    print('Good')
    return

if __name__ == '__main__':
    main()

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

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

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

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

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

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

Solution (Python):
def solve():
    s = input()
    for i in range(len(s)-1):
        if s[i]==s[i+1]:
            return 'Bad'
    else:
        return 'Good'
        

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

Solution (Python):
import re
s = input()
if re.search(r'(11|22|33|44|55|66|77|88|99|00)', s):
    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()
count=0
for i in range(len(s)-1):
  if s[i]==s[i+1]:
    count=1
if count==1:
  print("Bad")
if count==0:
  print("Good")

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

Solution (Python):
import sys

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

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

Solution (Python):
s = input()
bl = 1 in (len(set(x)) for x in zip(s, s[1:]))
print('Bad' if bl 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 = 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
  if i==2:
    print("Good")

Solution (Python):
import sys

def solve():
    password = input()
    
    for i in range(3):
        if password[i] == password[i+1]:
            print('Bad')
            sys.exit()
    
    print('Good')

if __name__ == '__main__':
    solve()

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):
n = input()
flag= True
for i in range(1,len(n)-1):
    if n[i - 1] == n[i] or n[i] == n[i + 1]:
        flag = False
        break

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

Solution (Python):
S = str(input())
X =[]
for s in S:
    X.append(s)

if (X[0] == X[1]) or (X[1] == X[2]) or (X[2] == X[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()

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

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())
s = list(a)
count = 0
for i in range(3):
    if s[i] != s[i+1]:
        count += 1
if count == 3:
    print("Good")
else:
    print("Bad")

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip()

bl = any(x == y for x,y in zip(S,S[1:]))
answer = 'Bad' if bl else 'Good'
print(answer)

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

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

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

Solution (Python):

a = str(input())
s = list(a)
count = 0
for i in range(3):
    if s[i] != s[i+1]:
        count += 1
if count == 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()
a = ("Good")
if s[0] == s[1]:
    a = ("Bad")
if s[1] == s[2]:
    a = ("Bad")
if s[2] == s[3]:
    a = ("Bad")
print(a)

Solution (Python):


s = str(input())









for i in range(1, len(s)):
    
    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()
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=list(s)
if A[0]==A[1] or A[2]==A[1] or A[3]==A[2]:
    print('Bad')
else:
    print('Good')

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

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

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

Solution (Python):
s = list(input(''))
a = 0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        a += 1
if a != 0:
    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):
L = input()

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

Solution (Python):
s = list(map(str, input()))
count = 0
for i in range(1,4):
    if s[i] == s[i-1]:
        print('Bad')
        break
    else:
        count += 1
        continue
if count == 3:
    print('Good')

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

count = 0

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

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

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

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

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

Solution (Python):
import sys

S=input()
count = 0

if S[0]==S[1]:
    print('Bad')
    sys.exit()
if S[1]==S[2]:
    print('Bad')
    sys.exit()
if S[2]==S[3]:
    print('Bad')
    sys.exit()

print('Good')

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

Solution (Python):
t=input()
ans=0
if t[0]==t[1] or t[1]==t[2] or t[2]==t[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()
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
    print('Bad')
else:
    print('Good')

Solution (Python):
S = list(int(v) for v in 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(4-1):
  if s[i] == s[i+1]:
    print("Bad")
    exit()

print("Good")

Solution (Python):

import sys


def solve(S: int):
    previous = ''
    for s in list(str(S).zfill(4)):
        if previous == s:
            print('Bad')
            return
        previous = s

    print('Good')
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = int(next(tokens))  
    solve(S)

if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = input()

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    for i in range(1, len(s)):
        if s[i] == s[i-1]:
            print("Bad")
            exit()
    print("Good")


if __name__ == '__main__':
    slove()

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    s = input()
    print("Bad" if any([s[i - 1] == s[i] for i in range(1, 4)]) else "Good")


if __name__ == "__main__":
    main()

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



def main():
    s_list = list(map(int, input()))
    for i in range(0, len(s_list) - 1):
        if s_list[i] == s_list[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()
good = True
for i in range(len(s) - 1):
	if s[i] == s[i + 1]:
		good = False
		break
print('Good' if good else 'Bad')

Solution (Python):
s = list(map(int, list(input())))
pre_s = 10
flag = False
for i in s:
    if (i == pre_s) and not(flag):
        flag = True
    pre_s = i
if flag:
    print("Bad")
else:
    print("Good")

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

Solution (Python):
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

Solution (Python):


s = list(raw_input())

l = len(s)

badFlag = False
for i in range(l-1):
    if s[i] == s[i+1]:
        badFlag = True

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

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

for i in range(len(S) - 1):
      if S[i] == S[i + 1]:
            print("Bad")
            quit()
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):
def main():

    S = input()
    cnt = 0
    for i in range(3):
        if S[i] == S[i + 1]:
            cnt += 1
    if cnt == 0:
        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()
j = False

for i in range(len(S)):
  try:
    if S[i] == S[i+1]:
      j = True
    else:
      pass
  except:
    pass

if j:
  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()
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()

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

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

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

Solution (Python):
S = input()

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

if key == 0:
    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):
S = list(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 = 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("Bad" if any(S[i] == S[i+1] for i in range(3)) else "Good")

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

flag = False
p_s = None

for s in S:
  if s == p_s:
    flag = True
    break
  else:
    p_s = s

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

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

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

Solution (Python):
S = list(input())
i = 0
while i < len(S) - 1:
    if S[i] == S[i+1]:
        print("Bad")
        exit()
    i += 1
print("Good")

Solution (Python):
S=str(input())
S=",".join(S)
S=S.split(",")

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

Solution (Python):
S = input()
D = dict()
N = len(S)
count = False
for i in range(N-1):
    a = S[i+1]
    if S[i] == a:
        count = True
        break
if count:
    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())

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


def solve(S: str):

    good = True

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

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


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    S = str(next(tokens))  
    solve(S)


if __name__ == "__main__":
    main()

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(map(int,input()))

result = "True"
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        result = "bad"
        break
if result == "bad":
    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 = 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()

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

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

Solution (Python):
a = input()

answer = 'Good'
if a[0] == a[1] and a[2] != a[3]:
  answer = 'Bad'
  
if a[1] == a[2] and a[0] != a[3]:
  answer = 'Bad'
  
if a[2] == a[3] and a[0] != a[1]:
  answer = 'Bad'

if a[0] == a[1] and a[2] == a[3]:
  answer = 'Bad'
  
if a[0] == a[1] == a[2] != [3]:
  answer = 'Bad'
  
if a[1] == a[2] == a[3] != [0]:
  answer = 'Bad'

if a[0] == a[1] == a[2] == [3]:
  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):
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()
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):
from sys import stdin

s = stdin.readline().rstrip()

for i in range(3):
    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 'Bad')

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

try:
    for i in range(4):
        if S[i] == S[i + 1]:
            print('Bad')
            break
except:
    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
N=str(input())
for i in range(3):
  if N[i]==N[i+1]:
    print('Bad')
    sys.exit()
  else:
    pass
print('Good')

Solution (Python):
s = input()

sp = s[0]
ans = "Good"
for i in range(1, 4):
    if s[i] == sp:
        ans = "Bad"
        break
    sp = s[i]

print(ans)

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

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

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

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

Solution (Python):
S = input()
print("Good" if all(a != b for a,b in zip(S[:3], S[1:])) 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):

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

Solution (Python):
s = str(input())
ans = 'Good'
for i in range(3):
    if i == 3:
        break
    elif 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()

for i in range(len(s)-1):
    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=list(input())
S.sort
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, list(input())))

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

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

Solution (Python):

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

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

Solution (Python):
n=int(input())
sen = n // 1000
hyaku = (n - sen * 1000) // 100
juu = (n - sen * 1000 -  hyaku * 100) // 10
iti = n - sen * 1000 -  hyaku * 100 - juu * 10

if sen == hyaku or hyaku == juu or juu == iti:
    print('Bad')
else:
    print('Good')