import std.functional,
       std.algorithm,
       std.container,
       std.typetuple,
       std.typecons,
       std.bigint,
       std.string,
       std.traits,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main()
{
auto ip = readln.split.to!(int[]);
writeln((ip[0]*ip[1]).to!string ~ " " ~ (ip[0]*2+ip[1]*2).to!string);
}
