(stdin => {
  // Define Function
  const area = (a, b) => a * b
  const Circumference = (a, b) => (a + 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), Circumference(a, b))
})(require('fs').readFileSync('/dev/stdin', 'utf8'))
