package com.example

import scala.io.StdIn

object Main {
  def main(args: Array[String]): Unit = {
    val Array(a, b) = StdIn.readLine().split(" ").map(_.toInt)
    println(s"${a * b} ${a * 2 + b * 2}")
  }
}