import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	}

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

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	}

} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	} main {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int S = a * b; S a * b a b int T = 2 * (a + b); T 2 * (a + b) 2 (a + b) a b System.out.println(S + " " + T) System.out.println System.out System System.out S + " " + T S + " " + T S " " T String[] args args public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	}

} public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
		 
        int a = sc.nextInt();
        int b = sc.nextInt();

		int S = a * b;
		int T = 2 * (a + b);
		System.out.println(S + " " + T);
	}

}

