import java.util.Scanner;

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

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		String answer = a * b + " " + (2 * a + 2 * b);
		System.out.println(answer);
	}
}