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

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