-- | Main entry point to the application.
module Main where
 
import Control.Applicative
import Control.Monad
import Data.List
import Data.Maybe
import Text.Printf

-- | The main entry point.
main :: IO ()
main = do
    [a, b] <- concatMap (fmap (read :: String -> Int) . words) . lines <$> getContents
    printf "%d %d\n" (a * b) (2 * a + 2 * b)