import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	}

} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	} main {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int length = input.nextInt(); length input.nextInt() input.nextInt input int wide = input.nextInt(); wide input.nextInt() input.nextInt input int area = length * wide; area length * wide length wide int para = 2 * length + 2 * wide; para 2 * length + 2 * wide 2 * length 2 length 2 * wide 2 wide System.out.println(area + " " + para) System.out.println System.out System System.out area + " " + para area + " " + para area " " para input.close() input.close input String[] args args public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int length = input.nextInt();
		int wide = input.nextInt();
		
		int area = length * wide;
		int para = 2 * length + 2 * wide;
		System.out.println(area + " " + para);
		
		input.close();
	}

}