import java.util.Scanner;

class Main{

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

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

class Main{

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