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

class Main{

	public static void main(String[] args) throws Exception{
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int width = Integer.parseInt(line[0]);
		int height = Integer.parseInt(line[1]);
		int area = width * height;
		int length = (width * 2) + (height * 2);

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

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

	public static void main(String[] args) throws Exception{
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int width = Integer.parseInt(line[0]);
		int height = Integer.parseInt(line[1]);
		int area = width * height;
		int length = (width * 2) + (height * 2);

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

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

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

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

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

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

class Main{

	public static void main(String[] args) throws Exception{
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int width = Integer.parseInt(line[0]);
		int height = Integer.parseInt(line[1]);
		int area = width * height;
		int length = (width * 2) + (height * 2);

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

	}
}