(stdin => {
  // Define Function
  const Area = (a, b) => a * b
  const Sur = (a, b) => a * 2 + b * 2
  // Declare Variable
  const inputs = stdin.toString().trim().split(' ')
  const a = parseInt(inputs[0], 10)
  const b = parseInt(inputs[1], 10)
  console.log(`${Area(a, b)} ${Sur(a, b)}`)
})(require('fs').readFileSync('/dev/stdin', 'utf8'))
