import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int x,y;

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	}

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

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	}

} Main public static void main(String[] args) {
		int x,y;

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	} main {
		int x,y;

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	} int x x y; y Scanner sc = new Scanner(System.in); sc new Scanner(System.in) x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc System.out.println((x*y) +" "+(x*2 + y*2)) System.out.println System.out System System.out (x*y) +" "+(x*2 + y*2) (x*y) +" "+(x*2 + y*2) (x*y) x y " " (x*2 + y*2) x*2 x 2 y*2 y 2 sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		int x,y;

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	}

} public class Main {
	public static void main(String[] args) {
		int x,y;

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int x,y;

		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println((x*y) +" "+(x*2 + y*2));

		sc.close();
	}

}