object Main{
    def main(args: Array[String]): Unit ={
        val scanner = new java.util.Scanner(System.in)
        val l,w = scanner.nextInt()
        val c = l+l+w+w
        System.out.println(l*w + " " + c)
    }
}