from copy import copy



s = list(eval(input()))



before = ''

for chara in s:

    if chara == before:

        print('Bad')

        exit()

    before = copy(chara)

print('Good')
# AC

from copy import copy



s = list(eval(input()))



before = ''

for chara in s:

    if chara == before:

        print('Bad')

        exit()

    before = chara

print('Good')

from copy import copy

s = list(eval(input()))
before = ""
for chara in s:
    if chara == before:
        print("Bad")
        exit()
    before = copy(chara)
print("Good")

# AC
from copy import copy

s = list(eval(input()))
before = ""
for chara in s:
    if chara == before:
        print("Bad")
        exit()
    before = chara
print("Good")

+# AC -    before = copy(chara) +    before = chara