import           Control.Applicative()

check :: String -> Bool
check [] = False
check [_] = False
check (c1:c2:s)
    | c1 == c2 = True
    | otherwise = check(c2:s)


main :: IO ()
main = do
    s <- getLine
    putStrLn $ if check s then "Bad" else "Good"