object main {
  def main(args: Array[String]){
    val In = readLine
    val num = In.split(" ") map ( x => x.toInt )
    println( (num.head * num.last) + " " + ((x: Int, y: Int) => 2 * (x + y))(num.head, num.last) )
  }
}