import java.io.InputStream;
import java.util.Scanner;

class Main {
	
	public static void main(String[] args){
		
		Scanner In = new Scanner(System.in);
		
		int x = In.nextInt();
	
		int y = In.nextInt();

		int sum = x * y;

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

		int sum = x * y;

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

		int sum = x * y;

		int sum2 = x * 2 + y * 2;
		
		System.out.print(sum);
		System.out.print(" ");
		System.out.println(sum2);
		
} main {
		
		Scanner In = new Scanner(System.in);
		
		int x = In.nextInt();
	
		int y = In.nextInt();

		int sum = x * y;

		int sum2 = x * 2 + y * 2;
		
		System.out.print(sum);
		System.out.print(" ");
		System.out.println(sum2);
		
} 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 int sum = x * y; sum x * y x y int sum2 = x * 2 + y * 2; sum2 x * 2 + y * 2 x * 2 x 2 y * 2 y 2 System.out.print(sum) System.out.print System.out System System.out sum System.out.print(" ") System.out.print System.out System System.out " " System.out.println(sum2) System.out.println System.out System System.out sum2 String[] args args
import java.io.InputStream;
import java.util.Scanner;

class Main {
	
	public static void main(String[] args){
		
		Scanner In = new Scanner(System.in);
		
		int x = In.nextInt();
	
		int y = In.nextInt();

		int sum = x * y;

		int sum2 = x * 2 + y * 2;
		
		System.out.print(sum);
		System.out.print(" ");
		System.out.println(sum2);
		
}
}