import java.io.*;

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

	String str = br.readLine();
	String[] str1 = str.split(" ",0);
	
	int[] str2 = new int[str1.length];
	for (int i = 0; i < str1.length ; i++) {
	    str2[i] = Integer.parseInt(str1[i]);
	}
	int res1 = str2[0] * str2[1];
	int res2 = (str2[0]+str2[1]) * 2;
	System.out.println(res1 +" "+ res2);

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

	String str = br.readLine();
	String[] str1 = str.split(" ",0);
	
	int[] str2 = new int[str1.length];
	for (int i = 0; i < str1.length ; i++) {
	    str2[i] = Integer.parseInt(str1[i]);
	}
	int res1 = str2[0] * str2[1];
	int res2 = (str2[0]+str2[1]) * 2;
	System.out.println(res1 +" "+ res2);

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

	String str = br.readLine();
	String[] str1 = str.split(" ",0);
	
	int[] str2 = new int[str1.length];
	for (int i = 0; i < str1.length ; i++) {
	    str2[i] = Integer.parseInt(str1[i]);
	}
	int res1 = str2[0] * str2[1];
	int res2 = (str2[0]+str2[1]) * 2;
	System.out.println(res1 +" "+ res2);

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

	String str = br.readLine();
	String[] str1 = str.split(" ",0);
	
	int[] str2 = new int[str1.length];
	for (int i = 0; i < str1.length ; i++) {
	    str2[i] = Integer.parseInt(str1[i]);
	}
	int res1 = str2[0] * str2[1];
	int res2 = (str2[0]+str2[1]) * 2;
	System.out.println(res1 +" "+ res2);

    } 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[] str1 = str.split(" ",0); str1 str.split(" ",0) str.split str " " 0 int[] str2 = new int[str1.length]; str2 new int[str1.length] str1.length str1 str1.length for (int i = 0; i < str1.length ; i++) {
	    str2[i] = Integer.parseInt(str1[i]);
	} int i = 0; int i = 0; i 0 i < str1.length i str1.length str1 str1.length i++ i++ i {
	    str2[i] = Integer.parseInt(str1[i]);
	} {
	    str2[i] = Integer.parseInt(str1[i]);
	} str2[i] = Integer.parseInt(str1[i]) str2[i] str2 i Integer.parseInt(str1[i]) Integer.parseInt Integer str1[i] str1 i int res1 = str2[0] * str2[1]; res1 str2[0] * str2[1] str2[0] str2 0 str2[1] str2 1 int res2 = (str2[0]+str2[1]) * 2; res2 (str2[0]+str2[1]) * 2 (str2[0]+str2[1]) str2[0] str2 0 str2[1] str2 1 2 System.out.println(res1 +" "+ res2) System.out.println System.out System System.out res1 +" "+ res2 res1 +" "+ res2 res1 " " res2 String[] args args
import java.io.*;

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

	String str = br.readLine();
	String[] str1 = str.split(" ",0);
	
	int[] str2 = new int[str1.length];
	for (int i = 0; i < str1.length ; i++) {
	    str2[i] = Integer.parseInt(str1[i]);
	}
	int res1 = str2[0] * str2[1];
	int res2 = (str2[0]+str2[1]) * 2;
	System.out.println(res1 +" "+ res2);

    }
}