import java.util.Scanner;

class Main{

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

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

class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int lap = 2*(a+b);
		System.out.println(a*b + " " + lap);
	}
}
