process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function (chunk) {
    const n = chunk.toString();
    const a = n.split(" ");
    const b = area(a[0],a[1]);
    const c = gaisyu(a[0],a[1]);
    console.log(`${b} ${c}`);
});
function area(tate,yoko){
    return tate*yoko;
}
function gaisyu(tate,yoko){
    const k = tate*2;
    const q = yoko*2;
    return k+q;
}
