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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


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

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


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

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] inputNumber = br.readLine().split(" "); inputNumber br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int height =  Integer.parseInt(inputNumber[0]); height Integer.parseInt(inputNumber[0]) Integer.parseInt Integer inputNumber[0] inputNumber 0 int width =  Integer.parseInt(inputNumber[1]); width Integer.parseInt(inputNumber[1]) Integer.parseInt Integer inputNumber[1] inputNumber 1 int area = height * width; area height * width height width int totalLength = (height*2) + (width*2); totalLength (height*2) + (width*2) (height*2) height 2 (width*2) width 2 System.out.println(area + " " + totalLength) System.out.println System.out System System.out area + " " + totalLength area + " " + totalLength area " " totalLength String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


}