import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int a, b;


		String str = br.readLine();
		String strArr[] = str.split(" ");

		a = Integer.parseInt(strArr[0]);
		b = Integer.parseInt(strArr[1]);

		System.out.println(a*b + " " + (a*2 + b*2));
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int a, b;


		String str = br.readLine();
		String strArr[] = str.split(" ");

		a = Integer.parseInt(strArr[0]);
		b = Integer.parseInt(strArr[1]);

		System.out.println(a*b + " " + (a*2 + b*2));
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int a, b;


		String str = br.readLine();
		String strArr[] = str.split(" ");

		a = Integer.parseInt(strArr[0]);
		b = Integer.parseInt(strArr[1]);

		System.out.println(a*b + " " + (a*2 + b*2));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int a, b;


		String str = br.readLine();
		String strArr[] = str.split(" ");

		a = Integer.parseInt(strArr[0]);
		b = Integer.parseInt(strArr[1]);

		System.out.println(a*b + " " + (a*2 + b*2));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a a b; b String str = br.readLine(); str br.readLine() br.readLine br String strArr[] = str.split(" "); strArr str.split(" ") str.split str " " a = Integer.parseInt(strArr[0]) a Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 b = Integer.parseInt(strArr[1]) b Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 System.out.println(a*b + " " + (a*2 + b*2)) System.out.println System.out System System.out a*b + " " + (a*2 + b*2) a*b + " " + (a*2 + b*2) a*b a b " " (a*2 + b*2) a*2 a 2 b*2 b 2 String[] args args
import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int a, b;


		String str = br.readLine();
		String strArr[] = str.split(" ");

		a = Integer.parseInt(strArr[0]);
		b = Integer.parseInt(strArr[1]);

		System.out.println(a*b + " " + (a*2 + b*2));
	}
}