s = eval(input())



flg = True

for s1, s2 in zip(s, s[1:]):

    if s1 == s2:

        flg = False

        break



print(('Good' if flg else 'Bad'))

s = eval(input())

bl = 1 in (len(set(x)) for x in zip(s, s[1:]))

print(('Bad' if bl else 'Good'))

s = eval(input())
flg = True
for s1, s2 in zip(s, s[1:]):
    if s1 == s2:
        flg = False
        break
print(("Good" if flg else "Bad"))

s = eval(input())
bl = 1 in (len(set(x)) for x in zip(s, s[1:]))
print(("Bad" if bl else "Good"))

-flg = True -for s1, s2 in zip(s, s[1:]): -    if s1 == s2: -        flg = False -        break -print(("Good" if flg else "Bad")) +bl = 1 in (len(set(x)) for x in zip(s, s[1:])) +print(("Bad" if bl else "Good"))