import java.util.Scanner;

public class Main {
	static Scanner  sc = new Scanner(System.in);
	static int h;
	static int w;
	
	public static void main(String[] args){
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	}
	
} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner  sc = new Scanner(System.in);
	static int h;
	static int w;
	
	public static void main(String[] args){
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	}
	
} Main static Scanner  sc = new Scanner(System.in); sc new Scanner(System.in) static int h; h static int w; w public static void main(String[] args){
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	} main {
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	} h=sc.nextInt() h sc.nextInt() sc.nextInt sc w=sc.nextInt() w sc.nextInt() sc.nextInt sc int area = h*w; area h*w h w int leng = h*2+w*2; leng h*2+w*2 h*2 h 2 w*2 w 2 System.out.println(area+" "+leng) System.out.println System.out System System.out area+" "+leng area+" "+leng area " " leng String[] args args public class Main {
	static Scanner  sc = new Scanner(System.in);
	static int h;
	static int w;
	
	public static void main(String[] args){
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	}
	
} public class Main {
	static Scanner  sc = new Scanner(System.in);
	static int h;
	static int w;
	
	public static void main(String[] args){
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	}
	
} Main
import java.util.Scanner;

public class Main {
	static Scanner  sc = new Scanner(System.in);
	static int h;
	static int w;
	
	public static void main(String[] args){
		h=sc.nextInt();
		w=sc.nextInt();
		int area = h*w;
		int leng = h*2+w*2;
		System.out.println(area+" "+leng);
	}
	
}