import std.stdio;
import std.array;
import std.algorithm;
import std.conv;

void main()
{
    auto inp = readln().split.map!(to!uint);
    writeln(inp[0] * inp[1], ' ', 2 * inp.reduce!((a, b) => a + b));
}