const caclArea = function (x, y) {
  return x * y
}
const calcOuter = function (x, y) {
  return x * 2 + y * 2
}

process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin.on('data', function (chunk) {
  const input = chunk.split(' ')
  const area = calcArea(input[0], input[1])
  const outer = calcOuter(input[0], input[1])
  console.log('%s %s', area, outer)
})