import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (a + b);
		 System.out.println(""+ans1+" "+ans2);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (a + b);
		 System.out.println(""+ans1+" "+ans2);
	}
} Main public static void main(String[] args){
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (a + b);
		 System.out.println(""+ans1+" "+ans2);
	} main {
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (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 = a * b; ans1 a * b a b int ans2 = 2 * (a + b); ans2 2 * (a + b) 2 (a + b) a b System.out.println(""+ans1+" "+ans2) System.out.println System.out System System.out ""+ans1+" "+ans2 " " ""+ans1+" "+ans2 "" ans1 " " ans2 String[] args args public class Main {
	public static void main(String[] args){
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (a + b);
		 System.out.println(""+ans1+" "+ans2);
	}
} public class Main {
	public static void main(String[] args){
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (a + b);
		 System.out.println(""+ans1+" "+ans2);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		 Scanner scan = new Scanner(System.in);
		 int a = scan.nextInt();
		 int b = scan.nextInt();
		 int ans1 = a * b;
		 int ans2 = 2 * (a + b);
		 System.out.println(""+ans1+" "+ans2);
	}
}