var caclArea = function (x, y) {
  return x * y
}
var  calcOuter = function (x, y) {
  return x * 2 + y * 2
}
 
var input = new Objects()
process.argv.slice(2).forEach(function (val, index, array) {
  input.push(parseInt(val))
})
 
var area = calcArea(input[0], input[1])
var outer = calcOuter(input[0], input[1])
 
console.log('%s %s', area, outer)