import java.util.Scanner;

//???a???¨?b???????????¢?????¢???????±???????????????°??????
public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	}

	//????????¢?????¢???????±?????????????????????????
	private static int area(int a, int b){
		return a*b;
	}
	private static int circuit(int a, int b){
		return 2*a+2*b;
	}


} import java.util.Scanner; Scanner java.util public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	}

	//????????¢?????¢???????±?????????????????????????
	private static int area(int a, int b){
		return a*b;
	}
	private static int circuit(int a, int b){
		return 2*a+2*b;
	}


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

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	} main {

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int b=scan.nextInt(); b scan.nextInt() scan.nextInt scan System.out.println(area(a,b)+" "+circuit(a,b)) System.out.println System.out System System.out area(a,b)+" "+circuit(a,b) area(a,b)+" "+circuit(a,b) area(a,b) area a b " " circuit(a,b) circuit a b String[] args args //????????¢?????¢???????±?????????????????????????
	private static int area(int a, int b){
		return a*b;
	} area {
		return a*b;
	} return a*b; a*b a b int a a int b b private static int circuit(int a, int b){
		return 2*a+2*b;
	} circuit {
		return 2*a+2*b;
	} return 2*a+2*b; 2*a+2*b 2*a 2 a 2*b 2 b int a a int b b public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	}

	//????????¢?????¢???????±?????????????????????????
	private static int area(int a, int b){
		return a*b;
	}
	private static int circuit(int a, int b){
		return 2*a+2*b;
	}


} public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	}

	//????????¢?????¢???????±?????????????????????????
	private static int area(int a, int b){
		return a*b;
	}
	private static int circuit(int a, int b){
		return 2*a+2*b;
	}


} Main
import java.util.Scanner;

//???a???¨?b???????????¢?????¢???????±???????????????°??????
public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();

		System.out.println(area(a,b)+" "+circuit(a,b));


	}

	//????????¢?????¢???????±?????????????????????????
	private static int area(int a, int b){
		return a*b;
	}
	private static int circuit(int a, int b){
		return 2*a+2*b;
	}


}