import           Control.Arrow         (second)
import qualified Data.ByteString.Char8 as BSC8
import qualified Data.Vector.Unboxed   as VU

getI :: BSC8.ByteString -> Maybe (Int, BSC8.ByteString)
getI = fmap (second BSC8.tail) . BSC8.readInt

getAB :: IO (Int, Int)
getAB = (\vec -> (vec VU.! 0, vec VU.! 1)) . VU.unfoldrN 2 getI <$> BSC8.getLine

main :: IO ()
main = getAB >>= print . (\(a, b) -> a * b) 