import java.io.IOException;
import java.util.Scanner;


public class Main {

	static int inputA,inputB;
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	}
	
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	static int inputA,inputB;
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	}
	
} Main static int inputA inputA inputB; inputB public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	} main {
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int inputA=in.nextInt(); inputA in.nextInt() in.nextInt in int inputB=in.nextInt(); inputB in.nextInt() in.nextInt in System.out.println(inputA*inputB+" "+(inputA+inputB)*2) System.out.println System.out System System.out inputA*inputB+" "+(inputA+inputB)*2 inputA*inputB+" "+(inputA+inputB)*2 inputA*inputB inputA inputB " " (inputA+inputB)*2 (inputA+inputB) inputA inputB 2 String args[] args public class Main {

	static int inputA,inputB;
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	}
	
} public class Main {

	static int inputA,inputB;
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	}
	
} Main
import java.io.IOException;
import java.util.Scanner;


public class Main {

	static int inputA,inputB;
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		
		
	}
	
}