import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,ms,ns;
		a = sc.nextInt();
		b = sc.nextInt();
		ms = a*b;
		ns = 2*(a+b);
		System.out.println(ms+" "+ns);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,ms,ns;
		a = sc.nextInt();
		b = sc.nextInt();
		ms = a*b;
		ns = 2*(a+b);
		System.out.println(ms+" "+ns);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,ms,ns;
		a = sc.nextInt();
		b = sc.nextInt();
		ms = a*b;
		ns = 2*(a+b);
		System.out.println(ms+" "+ns);
	} main {
		Scanner sc = new Scanner(System.in);
		int a,b,ms,ns;
		a = sc.nextInt();
		b = sc.nextInt();
		ms = a*b;
		ns = 2*(a+b);
		System.out.println(ms+" "+ns);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b ms ms ns; ns a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc ms = a*b ms a*b a b ns = 2*(a+b) ns 2*(a+b) 2 (a+b) a b System.out.println(ms+" "+ns) System.out.println System.out System System.out ms+" "+ns ms+" "+ns ms " " ns String[] args args
import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,ms,ns;
		a = sc.nextInt();
		b = sc.nextInt();
		ms = a*b;
		ns = 2*(a+b);
		System.out.println(ms+" "+ns);
	}
}