(stdin => {
  // Define Function
  const Num = (array, array2) => array * array2
  const Num2 = (array, array2) => (array + array2) * 2
  // Declare Variable
  const inputs = stdin.toString().trim().split(' ')
  const array = parseInt(inputs[0], 10)
  const array2 = parseInt(inputs[1], 10)

  console.log(Num(array, array2), Num2(array, array2))
})(require('fs').readFileSync('/dev/stdin', 'utf8'))

