S = eval(input())

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

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

        print('Bad')

        break

else:

    print('Good')
S = eval(input())



for i in range(3):

    if S[i] != S[i + 1]:

        continue

    else:

        print('Bad')

        break

else:

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

S = eval(input())
for i in range(3):
    if S[i] != S[i + 1]:
        continue
    else:
        print("Bad")
        break
else:
    print("Good")

-for i in range(len(S) - 1): -    if S[i] == S[i + 1]: +for i in range(3): +    if S[i] != S[i + 1]: +        continue +    else: