import java.util.Scanner;

class Main{
    static int area(int a,int b){
	return a*b;
    }

    static int prmt(int a,int b){
	return 2*(a+b);
    }

    public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int a=scan.nextInt();
	int b=scan.nextInt();

	int ans1=area(a,b);
	int ans2=prmt(a,b);

	System.out.println(ans1+" "+ans2);
    }
} import java.util.Scanner; Scanner java.util class Main{
    static int area(int a,int b){
	return a*b;
    }

    static int prmt(int a,int b){
	return 2*(a+b);
    }

    public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int a=scan.nextInt();
	int b=scan.nextInt();

	int ans1=area(a,b);
	int ans2=prmt(a,b);

	System.out.println(ans1+" "+ans2);
    }
} Main static int area(int a,int b){
	return a*b;
    } area {
	return a*b;
    } return a*b; a*b a b int a a int b b static int prmt(int a,int b){
	return 2*(a+b);
    } prmt {
	return 2*(a+b);
    } return 2*(a+b); 2*(a+b) 2 (a+b) a b int a a int b b public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int a=scan.nextInt();
	int b=scan.nextInt();

	int ans1=area(a,b);
	int ans2=prmt(a,b);

	System.out.println(ans1+" "+ans2);
    } main {
	Scanner scan=new Scanner(System.in);

	int a=scan.nextInt();
	int b=scan.nextInt();

	int ans1=area(a,b);
	int ans2=prmt(a,b);

	System.out.println(ans1+" "+ans2);
    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int b=scan.nextInt(); b scan.nextInt() scan.nextInt scan int ans1=area(a,b); ans1 area(a,b) area a b int ans2=prmt(a,b); ans2 prmt(a,b) prmt a b System.out.println(ans1+" "+ans2) System.out.println System.out System System.out ans1+" "+ans2 ans1+" "+ans2 ans1 " " ans2 String args[] args
import java.util.Scanner;

class Main{
    static int area(int a,int b){
	return a*b;
    }

    static int prmt(int a,int b){
	return 2*(a+b);
    }

    public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int a=scan.nextInt();
	int b=scan.nextInt();

	int ans1=area(a,b);
	int ans2=prmt(a,b);

	System.out.println(ans1+" "+ans2);
    }
}