main :: IO ()
main = do
  [w,h,x,y] <- map (read :: String -> Int) . words <$> getLine
  putStrLn $ show ((fromIntegral w)*(fromIntegral h)/2) ++ " " ++ show (ans w h x y)

ans :: Int -> Int -> Int -> Int -> Int
ans w h x y
  | w == 2*x && h == 2*y = 1
  | otherwise = 0