s = eval(input())

print(('Bad' if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] else 'Good'))

n = eval(input())

print(('Bad' if n[0]==n[1] or n[1]==n[2] or n[2]==n[3] else 'Good'))

s = eval(input())
print(("Bad" if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else "Good"))

n = eval(input())
print(("Bad" if n[0] == n[1] or n[1] == n[2] or n[2] == n[3] else "Good"))

-s = eval(input()) -print(("Bad" if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else "Good")) +n = eval(input()) +print(("Bad" if n[0] == n[1] or n[1] == n[2] or n[2] == n[3] else "Good"))