import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int num = scan.nextInt();
		int num2 = scan.nextInt();

		int num3 = num*num2;
		int num4 = num*2+num2*2;

		System.out.println(num3+" "+num4);



	}

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int num = scan.nextInt();
		int num2 = scan.nextInt();

		int num3 = num*num2;
		int num4 = num*2+num2*2;

		System.out.println(num3+" "+num4);



	}

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

		Scanner scan = new Scanner(System.in);

		int num = scan.nextInt();
		int num2 = scan.nextInt();

		int num3 = num*num2;
		int num4 = num*2+num2*2;

		System.out.println(num3+" "+num4);



	} main {

		Scanner scan = new Scanner(System.in);

		int num = scan.nextInt();
		int num2 = scan.nextInt();

		int num3 = num*num2;
		int num4 = num*2+num2*2;

		System.out.println(num3+" "+num4);



	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int num3 = num*num2; num3 num*num2 num num2 int num4 = num*2+num2*2; num4 num*2+num2*2 num*2 num 2 num2*2 num2 2 System.out.println(num3+" "+num4) System.out.println System.out System System.out num3+" "+num4 num3+" "+num4 num3 " " num4 String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int num = scan.nextInt();
		int num2 = scan.nextInt();

		int num3 = num*num2;
		int num4 = num*2+num2*2;

		System.out.println(num3+" "+num4);



	}

}