import std.stdio, std.string, std.conv;

void main() {
	auto input = getStdin!(string[])()[0];
	auto sides = input.split(" ").to!(int[]);
	writefln("%d %d", sides[0] * sides[1], 2 * (sides[0] + sides[1]));
}

T getStdin(T)() {
    string[] cmd;
    string line;
    while ((line = chomp(stdin.readln())) != "") cmd ~= line;
    return to!(T)(cmd);
}