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

int main() {
  string[] str = chomp(readln).split(" ");
  int a = to!(int)(str[0]);
  int b = to!(int)(str[1]);
  writeln(a*b, " ", a*2+b*2);
  return 0;
}