import static java.lang.System.out;
import java.util.Scanner;

public class Main {
	  public static void main(String...args) {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  }


} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.util.Scanner; Scanner java.util public class Main {
	  public static void main(String...args) {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  }


} Main public static void main(String...args) {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  } main {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  } String str = new Scanner(System.in).nextLine(); str new Scanner(System.in).nextLine() new Scanner(System.in).nextLine new Scanner(System.in) String[] list = str.split(" "); list str.split(" ") str.split str " " String x = list[0]; x list[0] list 0 String y = list[1]; y list[1] list 1 int a = Integer.parseInt(x); a Integer.parseInt(x) Integer.parseInt Integer x int b = Integer.parseInt(y); b Integer.parseInt(y) Integer.parseInt Integer y int sum = a * b; sum a * b a b int cm = (a + b) * 2; cm (a + b) * 2 (a + b) a b 2 out.println(sum + " " + cm) out.println out sum + " " + cm sum + " " + cm sum " " cm String...args args public class Main {
	  public static void main(String...args) {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  }


} public class Main {
	  public static void main(String...args) {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  }


} Main
import static java.lang.System.out;
import java.util.Scanner;

public class Main {
	  public static void main(String...args) {
			    String str = new Scanner(System.in).nextLine();
			    String[] list = str.split(" ");
			    String x = list[0];
			    String y = list[1];

			    int a = Integer.parseInt(x);
			    int b = Integer.parseInt(y);

				int sum = a * b;
                int cm = (a + b) * 2;

                out.println(sum + " " + cm);

	  }


}