import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	} main {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] line = scanner.nextLine().split(" "); line scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int num1 = Integer.parseInt(line[0]); num1 Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int num2 = Integer.parseInt(line[1]); num2 Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 System.out.println(String.format("%s %s", num1*num2,2*(num1+num2))) System.out.println System.out System System.out String.format("%s %s", num1*num2,2*(num1+num2)) String.format String "%s %s" num1*num2 num1 num2 2*(num1+num2) 2 (num1+num2) num1 num2 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] line = scanner.nextLine().split(" ");
		int num1 = Integer.parseInt(line[0]);
		int num2 = Integer.parseInt(line[1]);
		
		System.out.println(String.format("%s %s", num1*num2,2*(num1+num2)));
	}
}