program main
 implicit none
 character*80 s,a
 integer*8 i,j
 
 read(*,*) s
 a = s(1:1)
 j = 0
 do i=2,len_trim(s)
  if (a == s(i:i))then
   j = 1
  end if
  a = s(i:i)
 end do
 if(j==0) then
  write(*,*) 'Good'
 else
  write(*,*) 'Bad'
 end if
end program main