import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	}

} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	}

} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	} main {
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String scs = sc.nextLine(); scs sc.nextLine() sc.nextLine sc String[] number = scs.split(" "); number scs.split(" ") scs.split scs " " int num1 = Integer.parseInt(number[0]); num1 Integer.parseInt(number[0]) Integer.parseInt Integer number[0] number 0 int num2 = Integer.parseInt(number[1]); num2 Integer.parseInt(number[1]) Integer.parseInt Integer number[1] number 1 int ans1 = num1 * num2; ans1 num1 * num2 num1 num2 int ans2 = num1 * 2 + num2 * 2; ans2 num1 * 2 + num2 * 2 num1 * 2 num1 2 num2 * 2 num2 2 System.out.printf("%d %d\n", ans1, ans2) System.out.printf System.out System System.out "%d %d\n" ans1 ans2 String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	}

} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	}

} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		String scs = sc.nextLine();
		String[] number = scs.split(" ");
		int num1 = Integer.parseInt(number[0]);
		int num2 = Integer.parseInt(number[1]);

		int ans1 = num1 * num2;
		int ans2 = num1 * 2 + num2 * 2;

		System.out.printf("%d %d\n", ans1, ans2);

	}

}