import java.util.Scanner;

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

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

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

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

} Main
import java.util.Scanner;

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

}