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

void main()
{
    string[] input = split(readln());
    int a = to!(int)(input[0]);
    int b = to!(int)(input[1]);


    writeln(a*b, ' ', a * 2 + b * 2);
}