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