import java.util.Scanner;

public class Main {

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

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

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

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

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}