import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{

	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		String input = reader.readLine();
		String str[] = input.split(" ");
		int height = Integer.parseInt(str[0]);
		int width = Integer.parseInt(str[1]);
		int area = height * width;
		int roundSpan = (height + width) * 2;

		System.out.println(area + " " + roundSpan);

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{

	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		String input = reader.readLine();
		String str[] = input.split(" ");
		int height = Integer.parseInt(str[0]);
		int width = Integer.parseInt(str[1]);
		int area = height * width;
		int roundSpan = (height + width) * 2;

		System.out.println(area + " " + roundSpan);

	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		String input = reader.readLine();
		String str[] = input.split(" ");
		int height = Integer.parseInt(str[0]);
		int width = Integer.parseInt(str[1]);
		int area = height * width;
		int roundSpan = (height + width) * 2;

		System.out.println(area + " " + roundSpan);

	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		String input = reader.readLine();
		String str[] = input.split(" ");
		int height = Integer.parseInt(str[0]);
		int width = Integer.parseInt(str[1]);
		int area = height * width;
		int roundSpan = (height + width) * 2;

		System.out.println(area + " " + roundSpan);

	} BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in)); reader new BufferedReader(new InputStreamReader(
				System.in)) String input = reader.readLine(); input reader.readLine() reader.readLine reader String str[] = input.split(" "); str input.split(" ") input.split input " " int height = Integer.parseInt(str[0]); height Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int width = Integer.parseInt(str[1]); width Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int area = height * width; area height * width height width int roundSpan = (height + width) * 2; roundSpan (height + width) * 2 (height + width) height width 2 System.out.println(area + " " + roundSpan) System.out.println System.out System System.out area + " " + roundSpan area + " " + roundSpan area " " roundSpan String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{

	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		String input = reader.readLine();
		String str[] = input.split(" ");
		int height = Integer.parseInt(str[0]);
		int width = Integer.parseInt(str[1]);
		int area = height * width;
		int roundSpan = (height + width) * 2;

		System.out.println(area + " " + roundSpan);

	}
}