"use strict";

function Main(input) {
    var a=input.split(" ");
    console.log("%d %d",a[0]*a[1],a[0]*2+a[1]*2);
}

function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));