object Main {

    def main(args: Array[String]) = {
        val sc = new java.util.Scanner(System.in)
        val a = sc.nextInt
        val b = sc.nextInt

        println(a*b + " " + 2*(a+b))
    }
}

