object Main {
  def main(args: Array[String]): Unit = {
    val in:String = scala.io.StdIn.readLine();
    val inArray = in.split(" ")
    val a = inArray(0).toInt;
    val b = inArray(1).toInt;
    val area = a * b;
    val len = 2 * (a + b)
    println(area + " " + len);
  }
}