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

public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	}
} Main public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	} main {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] nyuryoku = line.split("[\\s]+"); nyuryoku line.split("[\\s]+") line.split line "[\\s]+" int tate = Integer.parseInt(nyuryoku[0]); tate Integer.parseInt(nyuryoku[0]) Integer.parseInt Integer nyuryoku[0] nyuryoku 0 int yoko = Integer.parseInt(nyuryoku[1]); yoko Integer.parseInt(nyuryoku[1]) Integer.parseInt Integer nyuryoku[1] nyuryoku 1 int menseki = tate * yoko; menseki tate * yoko tate yoko int gaisyu = (tate * 2) + (yoko * 2); gaisyu (tate * 2) + (yoko * 2) (tate * 2) tate 2 (yoko * 2) yoko 2 System.out.println(menseki + " " + gaisyu) System.out.println System.out System System.out menseki + " " + gaisyu menseki + " " + gaisyu menseki " " gaisyu String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] nyuryoku = line.split("[\\s]+");

		int tate = Integer.parseInt(nyuryoku[0]);
		int yoko = Integer.parseInt(nyuryoku[1]);

		int menseki = tate * yoko;
		int gaisyu = (tate * 2) + (yoko * 2);
		System.out.println(menseki + " " + gaisyu);
	}
}