import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args)throws IOException{

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	public static void main(String[] args)throws IOException{

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	}
} Main public static void main(String[] args)throws IOException{

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	} main {

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = br.readLine(); str br.readLine() br.readLine br String[] a = str.split(" ", 0); a str.split(" ", 0) str.split str " " 0 int[] b = new int[2]; b new int[2] 2 b[0] = Integer.parseInt(a[0]) b[0] b 0 Integer.parseInt(a[0]) Integer.parseInt Integer a[0] a 0 b[1] = Integer.parseInt(a[1]) b[1] b 1 Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2)) System.out.println System.out System System.out (b[0] * b[1]) +" " + (b[0]*2 + b[1]*2) (b[0] * b[1]) +" " + (b[0]*2 + b[1]*2) (b[0] * b[1]) b[0] b 0 b[1] b 1 " " (b[0]*2 + b[1]*2) b[0]*2 b[0] b 0 2 b[1]*2 b[1] b 1 2 String[] args args public class Main{
	public static void main(String[] args)throws IOException{

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	}
} public class Main{
	public static void main(String[] args)throws IOException{

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args)throws IOException{

		
	

		// ??\?????????
		InputStreamReader is = new InputStreamReader(System.in);
		
		// ??\??????Buffer???????´?
		BufferedReader br = new BufferedReader(is);
		
		// String?????§1?????????????????????
		String str = br.readLine();
		
		// split??§?????????????????????????´?
		String[] a = str.split(" ", 0);
		
		// int???????????£?¨?
		int[] b = new int[2];
		
		// b???0?????????a???0?????????int????????????????´?
		b[0] = Integer.parseInt(a[0]);
		
		// b???1?????????a???1?????????int????????????????´?
		b[1] = Integer.parseInt(a[1]);

		//??¢?????¨??¨????????????????????§????????£?????????
		System.out.println((b[0] * b[1]) +" " + (b[0]*2 + b[1]*2));
	}
}