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

/**
 *
 * @author yoshkur
 */
public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}

	public static Integer getArea(InputData inputData) {
		return inputData.getHeight() * inputData.getWidth();
	}

	public static Integer getLength(InputData inputData) {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	}

}

class InputData {

	private Integer height;
	private Integer width;

	public InputData(BufferedReader br) throws IOException {
		String line = br.readLine().trim();
		String[] values = line.split(" ");
		this.height = Integer.valueOf(values[0]);
		this.width = Integer.valueOf(values[1]);
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}
} 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) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}

	public static Integer getArea(InputData inputData) {
		return inputData.getHeight() * inputData.getWidth();
	}

	public static Integer getLength(InputData inputData) {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	}

} Main public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	} main {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	} try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		} IOException | NumberFormatException e {
			System.err.println(e.getLocalizedMessage());
		} System.err.println(e.getLocalizedMessage()) System.err.println System.err System System.err e.getLocalizedMessage() e.getLocalizedMessage e {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) InputData inputData = new InputData(br); inputData new InputData(br) StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(getArea(inputData)) sb.append sb getArea(inputData) getArea inputData sb.append(" ") sb.append sb " " sb.append(getLength(inputData)) sb.append sb getLength(inputData) getLength inputData System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public static Integer getArea(InputData inputData) {
		return inputData.getHeight() * inputData.getWidth();
	} getArea {
		return inputData.getHeight() * inputData.getWidth();
	} return inputData.getHeight() * inputData.getWidth(); inputData.getHeight() * inputData.getWidth() inputData.getHeight() inputData.getHeight inputData inputData.getWidth() inputData.getWidth inputData InputData inputData inputData public static Integer getLength(InputData inputData) {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	} getLength {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	} return (inputData.getHeight() + inputData.getWidth()) * 2; (inputData.getHeight() + inputData.getWidth()) * 2 (inputData.getHeight() + inputData.getWidth()) inputData.getHeight() inputData.getHeight inputData inputData.getWidth() inputData.getWidth inputData 2 InputData inputData inputData class InputData {

	private Integer height;
	private Integer width;

	public InputData(BufferedReader br) throws IOException {
		String line = br.readLine().trim();
		String[] values = line.split(" ");
		this.height = Integer.valueOf(values[0]);
		this.width = Integer.valueOf(values[1]);
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}
} InputData private Integer height; height private Integer width; width public InputData(BufferedReader br) throws IOException {
		String line = br.readLine().trim();
		String[] values = line.split(" ");
		this.height = Integer.valueOf(values[0]);
		this.width = Integer.valueOf(values[1]);
	} InputData {
		String line = br.readLine().trim();
		String[] values = line.split(" ");
		this.height = Integer.valueOf(values[0]);
		this.width = Integer.valueOf(values[1]);
	} String line = br.readLine().trim(); line br.readLine().trim() br.readLine().trim br.readLine() br.readLine br String[] values = line.split(" "); values line.split(" ") line.split line " " this.height = Integer.valueOf(values[0]) this.height this this.height Integer.valueOf(values[0]) Integer.valueOf Integer values[0] values 0 this.width = Integer.valueOf(values[1]) this.width this this.width Integer.valueOf(values[1]) Integer.valueOf Integer values[1] values 1 BufferedReader br br public Integer getHeight() {
		return height;
	} getHeight {
		return height;
	} return height; height public void setHeight(Integer height) {
		this.height = height;
	} setHeight {
		this.height = height;
	} this.height = height this.height this this.height height Integer height height public Integer getWidth() {
		return width;
	} getWidth {
		return width;
	} return width; width public void setWidth(Integer width) {
		this.width = width;
	} setWidth {
		this.width = width;
	} this.width = width this.width this this.width width Integer width width public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}

	public static Integer getArea(InputData inputData) {
		return inputData.getHeight() * inputData.getWidth();
	}

	public static Integer getLength(InputData inputData) {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	}

} public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}

	public static Integer getArea(InputData inputData) {
		return inputData.getHeight() * inputData.getWidth();
	}

	public static Integer getLength(InputData inputData) {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	}

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

/**
 *
 * @author yoshkur
 */
public class Main {

	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			StringBuilder sb = new StringBuilder();
			sb.append(getArea(inputData));
			sb.append(" ");
			sb.append(getLength(inputData));
			System.out.println(sb.toString());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}

	public static Integer getArea(InputData inputData) {
		return inputData.getHeight() * inputData.getWidth();
	}

	public static Integer getLength(InputData inputData) {
		return (inputData.getHeight() + inputData.getWidth()) * 2;
	}

}

class InputData {

	private Integer height;
	private Integer width;

	public InputData(BufferedReader br) throws IOException {
		String line = br.readLine().trim();
		String[] values = line.split(" ");
		this.height = Integer.valueOf(values[0]);
		this.width = Integer.valueOf(values[1]);
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}
}