import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	}

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

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] ab = sc.nextLine().split(" "); ab sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int a = Integer.parseInt(ab[0]); a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 int b = Integer.parseInt(ab[1]); b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 int mennseki = a * b; mennseki 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(mennseki + " " + shuu) System.out.println System.out System System.out mennseki + " " + shuu mennseki + " " + shuu mennseki " " shuu String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] ab = sc.nextLine().split(" ");

		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

		int mennseki = a * b;
		int shuu = 2*a + 2*b;

		System.out.println(mennseki + " " + shuu);
	}

}