public class Main {
public static void main(String[] args){
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
}
} public class Main {
public static void main(String[] args){
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
}
} Main public static void main(String[] args){
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
} main {
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
} String[] input = new java.util.Scanner ( System.in). nextLine().split(" "); input new java.util.Scanner ( System.in). nextLine().split(" ") new java.util.Scanner ( System.in). nextLine().split new java.util.Scanner ( System.in). nextLine() new java.util.Scanner ( System.in). nextLine new java.util.Scanner ( System.in) " " int a = Integer.parseInt(input[0]); a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int b = Integer.parseInt(input[1]); b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 System.out.println((a * b) + " " + ( 2 * a + 2 * b)) System.out.println System.out System System.out (a * b) + " " + ( 2 * a + 2 * b) (a * b) + " " + ( 2 * a + 2 * b) (a * b) a b " " ( 2 * a + 2 * b) 2 * a 2 a 2 * b 2 b String[] args args public class Main {
public static void main(String[] args){
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
}
} public class Main {
public static void main(String[] args){
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
}
} Main
public class Main {
public static void main(String[] args){
	
	String[] input = new java.util.Scanner ( System.in). nextLine().split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);
	
	System.out.println((a * b) + " " + ( 2 * a + 2 * b));
	
}
}