import java.util.Scanner;

public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
}

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

} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
} main {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int x x y; y x=a*2+b*2 x a*2+b*2 a*2 a 2 b*2 b 2 y=a*b y a*b a b System.out.println(+ y + " " + x) System.out.println System.out System System.out + y + " " + x + y + " " + x + y y " " x String[] args args public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
}

} public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
}

} Main
import java.util.Scanner;

public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
}

}