s = eval(input())



for i in range(len(s)-1):

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

        print("Bad")

        exit()

else:

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



f = 0



for i in range(3):

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

    f = 1

    

if f==1:

  print("Bad")

else:

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

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

-for i in range(len(s) - 1): +f = 0 +for i in range(3): -        print("Bad") -        exit() +        f = 1 +if f == 1: +    print("Bad")