n = list(eval(input()))

flag = 1

for i in range(1,len(n)):

    if n[i-1] == n[i]:

        print("Bad")

        flag = 0

        break

if flag:

    print("Good")

s = eval(input())

last = s[0]

flag = 0

for i in s[1:]:

    if i == last:

        flag = 1

    last = i



if flag:

    print("Bad")

else:

    print("Good")
n = list(eval(input()))
flag = 1
for i in range(1, len(n)):
    if n[i - 1] == n[i]:
        print("Bad")
        flag = 0
        break
if flag:
    print("Good")

s = eval(input())
last = s[0]
flag = 0
for i in s[1:]:
    if i == last:
        flag = 1
    last = i
if flag:
    print("Bad")
else:
    print("Good")

-n = list(eval(input())) -flag = 1 -for i in range(1, len(n)): -    if n[i - 1] == n[i]: -        print("Bad") -        flag = 0 -        break +s = eval(input()) +last = s[0] +flag = 0 +for i in s[1:]: +    if i == last: +        flag = 1 +    last = i +    print("Bad") +else: