s = list(eval(input()))

ans =0

for i in range(len(s)-1):

  if s[i] ==s[i+1]:

    ans = 1

if ans == 1:

  print('Bad')

else:

  print('Good')
s = eval(input())

print(('Bad' if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] else 'Good'))
s = list(eval(input()))
ans = 0
for i in range(len(s) - 1):
    if s[i] == s[i + 1]:
        ans = 1
if ans == 1:
    print("Bad")
else:
    print("Good")

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

-s = list(eval(input())) -ans = 0 -for i in range(len(s) - 1): -    if s[i] == s[i + 1]: -        ans = 1 -if ans == 1: -    print("Bad") -else: -    print("Good") +s = eval(input()) +print(("Bad" if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else "Good"))