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

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

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	}
} 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 {

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	}
} Main public static void main(String[] args) throws IOException {

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	} main {

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	} int a a b b area area length; length BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] strArray = str.split(" "); strArray str.split(" ") str.split str " " a = Integer.parseInt(strArray[0]) a Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 b = Integer.parseInt(strArray[1]) b Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 area = a*b area a*b a b length = (a*2) + (b*2) length (a*2) + (b*2) (a*2) a 2 (b*2) b 2 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 IOException {

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	}
} public class Main {
	public static void main(String[] args) throws IOException {

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

		int a, b, area, length;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		// 1??????????????§???????????????????????????????????????????????????????´??????????
		String[] strArray = str.split(" ");

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

		area = a*b;
		length = (a*2) + (b*2);

		System.out.println(area + " " + length);
	}
}