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

public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	}

} 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{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	}

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	} 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(" ",0); strArray str.split(" ",0) str.split str " " 0 int num[] = new int[strArray.length]; num new int[strArray.length] strArray.length strArray strArray.length for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		} int i=0; int i=0; i 0 i<strArray.length i strArray.length strArray strArray.length i++ i++ i {
			num[i] = Integer.parseInt(strArray[i]);
		} {
			num[i] = Integer.parseInt(strArray[i]);
		} num[i] = Integer.parseInt(strArray[i]) num[i] num i Integer.parseInt(strArray[i]) Integer.parseInt Integer strArray[i] strArray i int ans1 = num[0] * num[1]; ans1 num[0] * num[1] num[0] num 0 num[1] num 1 int ans2 = 2*(num[0] + num[1]); ans2 2*(num[0] + num[1]) 2 (num[0] + num[1]) num[0] num 0 num[1] num 1 System.out.println(ans1 + " " + ans2) System.out.println System.out System System.out ans1 + " " + ans2 ans1 + " " + ans2 ans1 " " ans2 String[] args args public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	}

} public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	}

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

public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	}

}