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

void main()
{
  string[] buf;
  int w,h;

  buf = split(readln());
  w = to!(int)(buf[0]);
  h = to!(int)(buf[1]);

  writeln(w*h,' ',2*w+2*h);
}