import re;print((re.search(r'(.)\1',eval(input()))and'Bad'or'Good'))
print(('Good'*eval('!='.join(eval(input())))or'Bad'))
import re

print((re.search(r"(.)\1", eval(input())) and "Bad" or "Good"))

print(("Good" * eval("!=".join(eval(input()))) or "Bad"))

-import re - -print((re.search(r"(.)\1", eval(input())) and "Bad" or "Good")) +print(("Good" * eval("!=".join(eval(input()))) or "Bad"))