a,b,c,d=eval(input())

print(("Bad"if a==b or b==c or c==d else"Good"))
s=eval(input())

print(("Good"if s[0]!=s[1]!=s[2]!=s[3] else "Bad"))
a, b, c, d = eval(input())
print(("Bad" if a == b or b == c or c == d else "Good"))

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

-a, b, c, d = eval(input()) -print(("Bad" if a == b or b == c or c == d else "Good")) +s = eval(input()) +print(("Good" if s[0] != s[1] != s[2] != s[3] else "Bad"))