import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	}
} import java.io.*; io.* java public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	} main {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) int a a b; b String s = buf.readLine(); s buf.readLine() buf.readLine buf String[] strlAry =s.split(" "); strlAry s.split(" ") s.split s " " for(int i=0;i<strlAry.length;i++){
	} int i=0; int i=0; i 0 i<strlAry.length i strlAry.length strlAry strlAry.length i++ i++ i {
	} {
	} a= Integer.parseInt(strlAry[0]) a Integer.parseInt(strlAry[0]) Integer.parseInt Integer strlAry[0] strlAry 0 b= Integer.parseInt(strlAry[1]) b Integer.parseInt(strlAry[1]) Integer.parseInt Integer strlAry[1] strlAry 1 System.out.println(a*b+" "+2*(a+b)) System.out.println System.out System System.out a*b+" "+2*(a+b) a*b+" "+2*(a+b) a*b a b " " 2*(a+b) 2 (a+b) a b String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	}
} Main
import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.println(a*b+" "+2*(a+b));	
	}
}