object Main{
    def main(args: Array [String]) :Unit ={
        val sc=new java.util.Scanner(System.in)
        val a = sc.nextInt
        var b = sc.nextInt
        println(b*a +" "+2*(a+b))
    }
}