const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const lines = input.trim().split('\n');

while (line = lines.shift()) {
  const dim = line.split(' ');
  const a = dim[0];
  const b = dim[1];
  const area = a * b;
  const perimeter = a * 2 + b * 2;
  console.log(area, perimeter);
} 
