s = eval(input())

print(('Bad' if any(a == b for a, b in zip(s, s[1:])) else 'Good'))

s = eval(input())

print(('Bad' if any(s[i] == s[i + 1] for i in range(3)) else 'Good'))
s = eval(input())
print(("Bad" if any(a == b for a, b in zip(s, s[1:])) else "Good"))

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

-print(("Bad" if any(a == b for a, b in zip(s, s[1:])) else "Good")) +print(("Bad" if any(s[i] == s[i + 1] for i in range(3)) else "Good"))