import java.util.Scanner;
public class Main {

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

	}

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

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

	}

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

	} main {
		
		 Scanner sc = new Scanner(System.in);
	     int h = sc.nextInt();
	     int w = sc.nextInt();
	     int a;
	     int l;
	     a = h*w;
	     l = h+w;
	     System.out.println(a+ " " +2*l);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int w = sc.nextInt(); w sc.nextInt() sc.nextInt sc int a; a int l; l a = h*w a h*w h w l = h+w l h+w h w System.out.println(a+ " " +2*l) System.out.println System.out System System.out a+ " " +2*l a+ " " +2*l a " " 2*l 2 l String[] args args public class Main {

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

	}

} public class Main {

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

	}

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

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

	}

}

