import Data.Bits
import Data.List
import Control.Monad
import qualified Data.Vector.Unboxed as V
import Control.Monad.ST
import Data.Maybe (fromMaybe)
import qualified Data.ByteString.Lazy.Char8 as B
import Debug.Trace

main :: IO ()
main = do
  as <- map read.words <$> getLine :: IO [Int]

  putStrLn $ if (maximum (map length $ group as)) >= 2 then "Bad" else "Good"
