-- ?????? a cm ?????? b cm ???????????¢?????¢?????¨??¨?????????????±???????????????°?????????????????????????????????
import           Control.Applicative
import           Text.Printf

main :: IO ()
main = do
  [a, b] <- (map read . words) <$> getLine :: IO [Int]
  let area = a * b
      zhou = 2 * a + 2 * b

  printf "%d %d\n" area zhou