function main(input){
    let nums = input.split(" ");
    const area = nums[0]*nums[1];
    const perimeter = 2*nums[0]+2*nums[1];
    console.log(area+" "+perimeter);
}


main(require('fs').readFileSync('/dev/stdin', 'utf8'));
