import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	} main {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int scanner1 = scanner.nextInt(); scanner1 scanner.nextInt() scanner.nextInt scanner int scanner2 = scanner.nextInt(); scanner2 scanner.nextInt() scanner.nextInt scanner int area = scanner1 * scanner2; area scanner1 * scanner2 scanner1 scanner2 int Surroundings = 2 * scanner1 + 2 * scanner2; Surroundings 2 * scanner1 + 2 * scanner2 2 * scanner1 2 scanner1 2 * scanner2 2 scanner2 System.out.println(area + " " + Surroundings) System.out.println System.out System System.out area + " " + Surroundings area + " " + Surroundings area " " Surroundings String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int scanner1 = scanner.nextInt();
		int scanner2 = scanner.nextInt();
		int area = scanner1 * scanner2;
		int Surroundings = 2 * scanner1 + 2 * scanner2;
		System.out.println(area + " " + Surroundings);
	}
}