import java.io.*;
public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	}

} import java.io.*; io.* java public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	}

} Main public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	} main {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = br.readLine(); str br.readLine() br.readLine br String[] spl = str.split(" ", 0); spl str.split(" ", 0) str.split str " " 0 System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2)) System.out.println System.out System System.out Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2) Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2) Integer.parseInt(spl[0])*Integer.parseInt(spl[1]) Integer.parseInt(spl[0]) Integer.parseInt Integer spl[0] spl 0 Integer.parseInt(spl[1]) Integer.parseInt Integer spl[1] spl 1 " " (Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2) Integer.parseInt(spl[0])*2 Integer.parseInt(spl[0]) Integer.parseInt Integer spl[0] spl 0 2 Integer.parseInt(spl[1])*2 Integer.parseInt(spl[1]) Integer.parseInt Integer spl[1] spl 1 2 String[] arg arg public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	}

} public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	}

} Main
import java.io.*;
public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			String[] spl = str.split(" ", 0);
			System.out.println(Integer.parseInt(spl[0])*Integer.parseInt(spl[1])+" "+(Integer.parseInt(spl[0])*2+Integer.parseInt(spl[1])*2));
	}

}