-- | Main entry point to the application.
module Main where

import Control.Applicative
import Control.Monad
import Data.List
import Debug.Trace
import Text.Printf

rInt :: String -> Int
rInt str = read str :: Int

-- | The main entry point.
main :: IO ()
main = do
    [a, b] <- (map rInt . words) <$> getLine
    printf "%d %d" (a * b) (a * 2 + b * 2)