s = input()

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

s = input()

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