import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

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

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	} main {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	} int a = input(); a input() input int b = input(); b input() input System.out.print(a * b) System.out.print System.out System System.out a * b a b System.out.print(" ") System.out.print System.out System System.out " " System.out.println(2 * (a + b)) System.out.println System.out System System.out 2 * (a + b) 2 (a + b) a b close() close String[] args args public static int input() {

		return scanner.nextInt();

	} input {

		return scanner.nextInt();

	} return scanner.nextInt(); scanner.nextInt() scanner.nextInt scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int a = input();
		int b = input();

		System.out.print(a * b);
		System.out.print(" ");
		System.out.println(2 * (a + b));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}