import java.util.Scanner;
class Main{

	public static void main(String[] args) {
		int a;
		int b = 0;
		Scanner data1 = new Scanner(System.in);
	    a = data1.nextInt();
	    b = data1.nextInt();
		int area;
		int total;
		area = (a * b);
		total = ((a + b) * 2);
		System.out.println(area + " " + total );
	}

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

	public static void main(String[] args) {
		int a;
		int b = 0;
		Scanner data1 = new Scanner(System.in);
	    a = data1.nextInt();
	    b = data1.nextInt();
		int area;
		int total;
		area = (a * b);
		total = ((a + b) * 2);
		System.out.println(area + " " + total );
	}

} Main public static void main(String[] args) {
		int a;
		int b = 0;
		Scanner data1 = new Scanner(System.in);
	    a = data1.nextInt();
	    b = data1.nextInt();
		int area;
		int total;
		area = (a * b);
		total = ((a + b) * 2);
		System.out.println(area + " " + total );
	} main {
		int a;
		int b = 0;
		Scanner data1 = new Scanner(System.in);
	    a = data1.nextInt();
	    b = data1.nextInt();
		int area;
		int total;
		area = (a * b);
		total = ((a + b) * 2);
		System.out.println(area + " " + total );
	} int a; a int b = 0; b 0 Scanner data1 = new Scanner(System.in); data1 new Scanner(System.in) a = data1.nextInt() a data1.nextInt() data1.nextInt data1 b = data1.nextInt() b data1.nextInt() data1.nextInt data1 int area; area int total; total area = (a * b) area (a * b) a b total = ((a + b) * 2) total ((a + b) * 2) (a + b) a b 2 System.out.println(area + " " + total ) System.out.println System.out System System.out area + " " + total area + " " + total area " " total String[] args args
import java.util.Scanner;
class Main{

	public static void main(String[] args) {
		int a;
		int b = 0;
		Scanner data1 = new Scanner(System.in);
	    a = data1.nextInt();
	    b = data1.nextInt();
		int area;
		int total;
		area = (a * b);
		total = ((a + b) * 2);
		System.out.println(area + " " + total );
	}

}