import sys

S = list(eval(input()))

v = S.pop(0)

for s in S:

    if s == v:

        print('Bad')

        sys.exit()

    v = s



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

if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:

    print('Bad')

else:

    print('Good')
import sys

S = list(eval(input()))
v = S.pop(0)
for s in S:
    if s == v:
        print("Bad")
        sys.exit()
    v = s
print("Good")

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

-import sys - -S = list(eval(input())) -v = S.pop(0) -for s in S: -    if s == v: -        print("Bad") -        sys.exit() -    v = s -print("Good") +S = eval(input()) +if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]: +    print("Bad") +else: +    print("Good")