function main(lines) {
  const input = lines.split(' ')
  const a = parseInt(input[0], 10)
  const b = parseInt(input[1], 10)
  const S = a * b
  const L = 2*a + 2*b
  
  console.log(S + ' ' + L)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
