public class Main {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	}
} public class Main {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	}
} Main public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	} main {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	} String str = new java.util.Scanner(System.in).nextLine(); str new java.util.Scanner(System.in).nextLine() new java.util.Scanner(System.in).nextLine new java.util.Scanner(System.in) String[] array = str.split(" "); array str.split(" ") str.split str " " int a = Integer.parseInt(array[0]); a Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 int b = Integer.parseInt(array[1]); b Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 int menseki = a * b; menseki a * b a b int shuu = 2*a + 2*b; shuu 2*a + 2*b 2*a 2 a 2*b 2 b System.out.println(menseki + " " + shuu) System.out.println System.out System System.out menseki + " " + shuu menseki + " " + shuu menseki " " shuu String[] args args public class Main {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	}
} public class Main {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	}
} Main
public class Main {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLine();
		String[] array = str.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int menseki = a * b;
		int shuu = 2*a + 2*b;
		System.out.println(menseki + " " + shuu);

	}
}