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

class Main {
	public static void main(String[] args) {
		try (BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in))) {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} catch (Exception e) {

		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) {
		try (BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in))) {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} catch (Exception e) {

		}
	}
} Main public static void main(String[] args) {
		try (BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in))) {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} catch (Exception e) {

		}
	} main {
		try (BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in))) {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} catch (Exception e) {

		}
	} try (BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in))) {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} catch (Exception e) {

		} catch (Exception e) {

		} Exception e {

		} {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in)) BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in)) new BufferedReader(
				new InputStreamReader(System.in)) String line = null; line null while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			} (line = stdReader.readLine()) != null (line = stdReader.readLine()) line stdReader.readLine() stdReader.readLine stdReader null {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			} if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				} !line.equals("") line.equals("") line.equals line "" {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				} String[] lineArray = line.split(" "); lineArray line.split(" ") line.split line " " int tate = Integer.parseInt(lineArray[0]); tate Integer.parseInt(lineArray[0]) Integer.parseInt Integer lineArray[0] lineArray 0 int yoko = Integer.parseInt(lineArray[1]); yoko Integer.parseInt(lineArray[1]) Integer.parseInt Integer lineArray[1] lineArray 1 System.out.print(tate * yoko) System.out.print System.out System System.out tate * yoko tate yoko System.out.print(" " + ((tate * 2) + (yoko * 2))) System.out.print System.out System System.out " " + ((tate * 2) + (yoko * 2)) " " ((tate * 2) + (yoko * 2)) (tate * 2) tate 2 (yoko * 2) yoko 2 break; System.out.println() System.out.println System.out System System.out String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) {
		try (BufferedReader stdReader = new BufferedReader(
				new InputStreamReader(System.in))) {
			String line = null;
			while ((line = stdReader.readLine()) != null) {
				if (!line.equals("")) {
					String[] lineArray = line.split(" ");
					int tate = Integer.parseInt(lineArray[0]);
					int yoko = Integer.parseInt(lineArray[1]);
					System.out.print(tate * yoko);
					System.out.print(" " + ((tate * 2) + (yoko * 2)));
				}
				break;
			}
			System.out.println();
		} catch (Exception e) {

		}
	}
}