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);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		}
} 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);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		}
} Main public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	} 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 calc(str) calc str String[] args args public static void calc(String str){
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		} calc {
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		} String[] result = str.split(" "); result str.split(" ") str.split str " " int num1 = Integer.parseInt(result[0]); num1 Integer.parseInt(result[0]) Integer.parseInt Integer result[0] result 0 int num2 = Integer.parseInt(result[1]); num2 Integer.parseInt(result[1]) Integer.parseInt Integer result[1] result 1 int res1 = num1*num2; res1 num1*num2 num1 num2 int res2 = (num1+num2)*2; res2 (num1+num2)*2 (num1+num2) num1 num2 2 System.out.println(Integer.toString(res1)+" "+Integer.toString(res2)) System.out.println System.out System System.out Integer.toString(res1)+" "+Integer.toString(res2) Integer.toString(res1)+" "+Integer.toString(res2) Integer.toString(res1) Integer.toString Integer res1 " " Integer.toString(res2) Integer.toString Integer res2 String str str public class Main{
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		}
} public class Main{
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		}
} 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);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		String[] result = str.split(" ");

		int num1 = Integer.parseInt(result[0]);
		int num2 = Integer.parseInt(result[1]);

		int res1 = num1*num2;
		int res2 = (num1+num2)*2;

		System.out.println(Integer.toString(res1)+" "+Integer.toString(res2));
		}
}