s=eval(input())

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

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

a, b, c, d = eval(input())
print(("Good" if a != b and b != c and c != d else "Bad"))

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