program main
  implicit none
  integer i, ans
  character(4) S
  !read(*, *) (L(i), i = 1,N)
  read(*, *) S
  ans = 0
  do i = 1,3
    if (S(i:i) == S(i+1:i+1)) then
      ans = 1
    end if
  end do
  if (ans == 1) then
    write(*, *) 'Bad'
  else
    write(*, *) 'Good'
  end if
end program main
