object Main extends App {
  for(line <- io.Source.stdin.getLines()) {
    val numAry = line.split(' ').map { _.toInt }
    val S = numAry(0) * numAry(1)
    val L = numAry(0)*2 + numAry(1)*2
    println(S + " " + L)
  }
}
