S = eval(input())

n = len(S)

flag = False

for i in range(1, n):

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

    flag = True

if flag == True:

  print('Bad')

else:

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

flag = False

tmp = ''

for s in S:

  if tmp == s:

    flag = True

  tmp = s

if flag == True:

  print('Bad')

else:

  print('Good')
S = eval(input())
n = len(S)
flag = False
for i in range(1, n):
    if S[i] == S[i - 1]:
        flag = True
if flag == True:
    print("Bad")
else:
    print("Good")

S = eval(input())
flag = False
tmp = ""
for s in S:
    if tmp == s:
        flag = True
    tmp = s
if flag == True:
    print("Bad")
else:
    print("Good")

-n = len(S) -for i in range(1, n): -    if S[i] == S[i - 1]: +tmp = "" +for s in S: +    if tmp == s: +    tmp = s