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

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strTateYoko = br.readLine();
		String[] tateYoko = strTateYoko.split(" ");
		Integer tate = Integer.parseInt(tateYoko[0]);
		Integer yoko = Integer.parseInt(tateYoko[1]);
		System.out.println(tate*yoko + " " + (tate*2+yoko*2));
	}

} 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 br = new BufferedReader(new InputStreamReader(System.in));
		String strTateYoko = br.readLine();
		String[] tateYoko = strTateYoko.split(" ");
		Integer tate = Integer.parseInt(tateYoko[0]);
		Integer yoko = Integer.parseInt(tateYoko[1]);
		System.out.println(tate*yoko + " " + (tate*2+yoko*2));
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strTateYoko = br.readLine();
		String[] tateYoko = strTateYoko.split(" ");
		Integer tate = Integer.parseInt(tateYoko[0]);
		Integer yoko = Integer.parseInt(tateYoko[1]);
		System.out.println(tate*yoko + " " + (tate*2+yoko*2));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strTateYoko = br.readLine();
		String[] tateYoko = strTateYoko.split(" ");
		Integer tate = Integer.parseInt(tateYoko[0]);
		Integer yoko = Integer.parseInt(tateYoko[1]);
		System.out.println(tate*yoko + " " + (tate*2+yoko*2));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strTateYoko = br.readLine(); strTateYoko br.readLine() br.readLine br String[] tateYoko = strTateYoko.split(" "); tateYoko strTateYoko.split(" ") strTateYoko.split strTateYoko " " Integer tate = Integer.parseInt(tateYoko[0]); tate Integer.parseInt(tateYoko[0]) Integer.parseInt Integer tateYoko[0] tateYoko 0 Integer yoko = Integer.parseInt(tateYoko[1]); yoko Integer.parseInt(tateYoko[1]) Integer.parseInt Integer tateYoko[1] tateYoko 1 System.out.println(tate*yoko + " " + (tate*2+yoko*2)) System.out.println System.out System System.out tate*yoko + " " + (tate*2+yoko*2) tate*yoko + " " + (tate*2+yoko*2) tate*yoko tate yoko " " (tate*2+yoko*2) tate*2 tate 2 yoko*2 yoko 2 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 br = new BufferedReader(new InputStreamReader(System.in));
		String strTateYoko = br.readLine();
		String[] tateYoko = strTateYoko.split(" ");
		Integer tate = Integer.parseInt(tateYoko[0]);
		Integer yoko = Integer.parseInt(tateYoko[1]);
		System.out.println(tate*yoko + " " + (tate*2+yoko*2));
	}

}