s = eval(input())

for i in range(1, 4):

    if s[i] == s[i - 1]:

        print("Bad")

        exit()

print("Good")
s = eval(input())

for i in range(3):

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

        print("Bad")

        exit()

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

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

-for i in range(1, 4): -    if s[i] == s[i - 1]: +for i in range(3): +    if s[i] == s[i + 1]: