# coding: utf-8



import sys

def input(): return sys.stdin.readline().strip()



# N = int(input())

# L = [int(x) for x in input().split()]

# N, M = map(int, input().split())

S = eval(input())



flag = False

for i in range(3):

    if S[i] == S[i + 1]:

        flag = True



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

# coding: utf-8



import sys

import math

import collections

import itertools

INF = 10 ** 10

MOD = 10 ** 9 + 7

def input() : return sys.stdin.readline().strip()

def gcd(x, y) : return y if x % y == 0 else gcd(y, x % y)

def lcm(x, y) : return (x * y) // gcd(x, y)

def I() : return int(input())

def LI() : return [int(x) for x in input().split()]

def RI(N) : return [int(input()) for _ in range(N)]

def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]

def PL(L) : print(*L, sep="\n")



S = input()



for i in range(3):

    if S[i] == S[i+1]:

        print("Bad")

        break

else:

    print("Good")

# coding: utf-8
import sys


def input():
    return sys.stdin.readline().strip()


# N = int(input())
# L = [int(x) for x in input().split()]
# N, M = map(int, input().split())
S = eval(input())
flag = False
for i in range(3):
    if S[i] == S[i + 1]:
        flag = True
print(("Bad" if flag else "Good"))

# coding: utf-8
import sys
import math
import collections
import itertools

INF = 10**10
MOD = 10**9 + 7


def input():
    return sys.stdin.readline().strip()


def gcd(x, y):
    return y if x % y == 0 else gcd(y, x % y)


def lcm(x, y):
    return (x * y) // gcd(x, y)


def I():
    return int(input())


def LI():
    return [int(x) for x in input().split()]


def RI(N):
    return [int(input()) for _ in range(N)]


def LRI(N):
    return [[int(x) for x in input().split()] for _ in range(N)]


def PL(L):
    print(*L, sep="\n")


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

+import math +import collections +import itertools + +INF = 10**10 +MOD = 10**9 + 7 -# N = int(input()) -# L = [int(x) for x in input().split()] -# N, M = map(int, input().split()) -S = eval(input()) -flag = False +def gcd(x, y): +    return y if x % y == 0 else gcd(y, x % y) + + +def lcm(x, y): +    return (x * y) // gcd(x, y) + + +def I(): +    return int(input()) + + +def LI(): +    return [int(x) for x in input().split()] + + +def RI(N): +    return [int(input()) for _ in range(N)] + + +def LRI(N): +    return [[int(x) for x in input().split()] for _ in range(N)] + + +def PL(L): +    print(*L, sep="\n") + + +S = input() -        flag = True -print(("Bad" if flag else "Good")) +        print("Bad") +        break +else: +    print("Good")