param = eval(input())

s = list(map(int, list(str(param))))



pre = None

check = True

 

for i in s:

  if pre != None:

    if pre == i:

      print("Bad")

      check = False

      break

  pre = i

  

if check:

  print("Good")
s = list(str(eval(input())))



flag = True

pre = None

for i, value in enumerate(s):

  if i != 0:

    if pre == value:

      flag = False

      break



  pre = value

    

if flag:

  print("Good")

else:

  print("Bad")
param = eval(input())
s = list(map(int, list(str(param))))
pre = None
check = True
for i in s:
    if pre != None:
        if pre == i:
            print("Bad")
            check = False
            break
    pre = i
if check:
    print("Good")

s = list(str(eval(input())))
flag = True
pre = None
for i, value in enumerate(s):
    if i != 0:
        if pre == value:
            flag = False
            break
    pre = value
if flag:
    print("Good")
else:
    print("Bad")

-param = eval(input()) -s = list(map(int, list(str(param)))) +s = list(str(eval(input()))) +flag = True -check = True -for i in s: -    if pre != None: -        if pre == i: -            print("Bad") -            check = False +for i, value in enumerate(s): +    if i != 0: +        if pre == value: +            flag = False -    pre = i -if check: +    pre = value +if flag: +else: +    print("Bad")