import java.util.Scanner;
class sample3{
    public static void main(String[] args){
        Scanner scan1=new Scanner(System.in);
        Scanner scan2=new Scanner(System.in);
        int a=scan1.nextInt();
        int b=scan2.nextInt();
        System.out.println(a*b+" "+(a+b)*2);
    }
}