import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	}
} import java.util.*; util.* java public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	}
} Main private static final Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args){
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	} main {
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int area = a * b; area a * b a b int cir = 2 * (a + b); cir 2 * (a + b) 2 (a + b) a b System.out.printf("%d %d\n", area, cir) System.out.printf System.out System System.out "%d %d\n" area cir String[] args args public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	}
} public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	}
} Main
import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int a = scan.nextInt();
		int b = scan.nextInt();
		int area = a * b;
		int cir = 2 * (a + b);
		System.out.printf("%d %d\n", area, cir);
	}
}