import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String inputed = new String(in.readLine()); inputed new String(in.readLine()) String value[] = inputed.split("[\\s]+"); value inputed.split("[\\s]+") inputed.split inputed "[\\s]+" int tate = Integer.parseInt(value[0]); tate Integer.parseInt(value[0]) Integer.parseInt Integer value[0] value 0 int yoko = Integer.parseInt(value[1]); yoko Integer.parseInt(value[1]) Integer.parseInt Integer value[1] value 1 int fill = tate * yoko; fill tate * yoko tate yoko int around = tate * 2 + yoko * 2; around tate * 2 + yoko * 2 tate * 2 tate 2 yoko * 2 yoko 2 System.out.println(fill + " " + around) System.out.println System.out System System.out fill + " " + around fill + " " + around fill " " around String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		int tate = Integer.parseInt(value[0]);
		int yoko = Integer.parseInt(value[1]);

		int fill = tate * yoko;
		int around = tate * 2 + yoko * 2;

		System.out.println(fill + " " + around);



	}
}