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

void main()
{
  string s = chomp(readln()); // ??????????????????
  int x = to!int(s.split(" ")[0]);
  int y = to!int(s.split(" ")[1]);
  write(x*y);
  write(" ");
  write(2x+2y);
}