module Main where


main = do
  s <- getLine
  putStrLn $ if judge s
             then "Good"
             else "Bad"
  return ()
judge (c1:c2:s) | c1 == c2 = False
judge (_:s) = judge s
judge [] = True
