import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

	} main {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

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

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

	}
} public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int area = a * b;
		int round = (a + b) * 2;
		System.out.println(area + " " + round);

	}
}