import java.util.*;

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

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