a = input()


def func():
    for x in range(len(a) - 1):
        if a[x] == a[x + 1]:
            return 'Bad'
    return 'Good'


print(func())

e2119b797c7e6f3fa10e436bb6d564babe30fa5e
<mask token>

<mask token>


def func():
    for x in range(len(a) - 1):
        if a[x] == a[x + 1]:
            return 'Bad'
    return 'Good'


<mask token>

<mask token>


def func():
    for x in range(len(a) - 1):
        if a[x] == a[x + 1]:
            return 'Bad'
    return 'Good'


print(func())

a = input()


def func():
    for x in range(len(a) - 1):
        if a[x] == a[x + 1]:
            return 'Bad'
    return 'Good'


print(func())
