
public class Main {

	public static void main(String[] args) {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	}

} public class Main {

	public static void main(String[] args) {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	}

} Main public static void main(String[] args) {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	} main {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	} java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int num = a*b; num a*b a b int num2 = 2*(a+b); num2 2*(a+b) 2 (a+b) a b System.out.println(num + " " + num2) System.out.println System.out System System.out num + " " + num2 num + " " + num2 num " " num2 String[] args args public class Main {

	public static void main(String[] args) {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	}

} public class Main {

	public static void main(String[] args) {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	}

} Main

public class Main {

	public static void main(String[] args) {
		java.util.Scanner scanner = new java.util.Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		int num = a*b;
		int num2 = 2*(a+b);
		
		System.out.println(num + " " + num2);
		
	}

}