import java.io.IOException;
import java.util.Scanner;

//????????¢?????¢???????±???????????????°??????
public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	}

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

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	}

} Main public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	} main {

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int x=in.nextInt(); x in.nextInt() in.nextInt in int y=in.nextInt(); y in.nextInt() in.nextInt in System.out.println(x*y +" "+ (2*x+2*y)) System.out.println System.out System System.out x*y +" "+ (2*x+2*y) x*y +" "+ (2*x+2*y) x*y x y " " (2*x+2*y) 2*x 2 x 2*y 2 y in.close() in.close in String[] args args public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	}

} public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	}

} Main
import java.io.IOException;
import java.util.Scanner;

//????????¢?????¢???????±???????????????°??????
public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		int y=in.nextInt();

		System.out.println(x*y +" "+ (2*x+2*y));//??¢???

		in.close();
	}

}