
object Main {
  def main(args: Array[String]): Unit = {
    import java.util.Scanner
    val sc = new Scanner(System.in)
    val x, y = sc.nextInt()
    val area = x * y
    val perimeter = (x + y) * 2
    println(area.toString + " " + perimeter.toString)

  }

}