(stdin => {
  // Define Function
  const menseki = (tate, yoko) => tate * yoko
  const syui = (tate, yoko) => (tate + yoko) * 2
 
  // Declare Variable
  const inputs = stdin.toString().trim().split(' ')
  const tate = parseInt(inputs[0], 10)
  const yoko = parseInt(inputs[1], 10)
 
  console.log(menseki(tate, yoko), syui(tate, yoko))
})(require('fs').readFileSync('/dev/stdin', 'utf8'))
