s = eval(input())

res = "Good"

for i in range(3):

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

        res = "Bad"

print(res)
s=eval(input())

ans="Good"

for i in range(3):

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

        ans="Bad"

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

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

-res = "Good" +ans = "Good" -        res = "Bad" -print(res) +        ans = "Bad" +print(ans)