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

public class Main {
	public static void main(String[] args) throws Exception{
		int a, b, area, length;
		String str;	//?????°???????´?????????????????????????
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		
		String[] splittedStr = str.split(" ", 0);	//?????°???????????§????????????
		a = Integer.parseInt(splittedStr[0]);		//??????????????´??°?????????
		b = Integer.parseInt(splittedStr[1]);		//??????
		
		area = a*b;
		length = 2*(a+b);
		
		System.out.println(area + " " + length);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception{
		int a, b, area, length;
		String str;	//?????°???????´?????????????????????????
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		
		String[] splittedStr = str.split(" ", 0);	//?????°???????????§????????????
		a = Integer.parseInt(splittedStr[0]);		//??????????????´??°?????????
		b = Integer.parseInt(splittedStr[1]);		//??????
		
		area = a*b;
		length = 2*(a+b);
		
		System.out.println(area + " " + length);
	}
} Main public static void main(String[] args) throws Exception{
		int a, b, area, length;
		String str;	//?????°???????´?????????????????????????
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		
		String[] splittedStr = str.split(" ", 0);	//?????°???????????§????????????
		a = Integer.parseInt(splittedStr[0]);		//??????????????´??°?????????
		b = Integer.parseInt(splittedStr[1]);		//??????
		
		area = a*b;
		length = 2*(a+b);
		
		System.out.println(area + " " + length);
	} main {
		int a, b, area, length;
		String str;	//?????°???????´?????????????????????????
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		
		String[] splittedStr = str.split(" ", 0);	//?????°???????????§????????????
		a = Integer.parseInt(splittedStr[0]);		//??????????????´??°?????????
		b = Integer.parseInt(splittedStr[1]);		//??????
		
		area = a*b;
		length = 2*(a+b);
		
		System.out.println(area + " " + length);
	} int a a b b area area length; length String str; str BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) str = br.readLine() str br.readLine() br.readLine br String[] splittedStr = str.split(" ", 0); splittedStr str.split(" ", 0) str.split str " " 0 a = Integer.parseInt(splittedStr[0]) a Integer.parseInt(splittedStr[0]) Integer.parseInt Integer splittedStr[0] splittedStr 0 b = Integer.parseInt(splittedStr[1]) b Integer.parseInt(splittedStr[1]) Integer.parseInt Integer splittedStr[1] splittedStr 1 area = a*b area a*b a b length = 2*(a+b) length 2*(a+b) 2 (a+b) a b System.out.println(area + " " + length) System.out.println System.out System System.out area + " " + length area + " " + length area " " length String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		int a, b, area, length;
		String str;	//?????°???????´?????????????????????????
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		
		String[] splittedStr = str.split(" ", 0);	//?????°???????????§????????????
		a = Integer.parseInt(splittedStr[0]);		//??????????????´??°?????????
		b = Integer.parseInt(splittedStr[1]);		//??????
		
		area = a*b;
		length = 2*(a+b);
		
		System.out.println(area + " " + length);
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		int a, b, area, length;
		String str;	//?????°???????´?????????????????????????
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		
		String[] splittedStr = str.split(" ", 0);	//?????°???????????§????????????
		a = Integer.parseInt(splittedStr[0]);		//??????????????´??°?????????
		b = Integer.parseInt(splittedStr[1]);		//??????
		
		area = a*b;
		length = 2*(a+b);
		
		System.out.println(area + " " + length);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

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