import java.util.Scanner;

public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} Main void run() {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	} run {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2) System.out.printf System.out System System.out "%d %d\n" num1*num2 num1 num2 num1*2 + num2*2 num1*2 num1 2 num2*2 num2 2 public static void main(String[] args) {
		Main m = new Main();
		m.run();
	} main {
		Main m = new Main();
		m.run();
	} Main m = new Main(); m new Main() m.run() m.run m String[] args args public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} Main
import java.util.Scanner;

public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		System.out.printf("%d %d\n", num1*num2, num1*2 + num2*2);
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
}