public class Main {

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

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

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

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

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