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

public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} Main public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in)); inMsg new BufferedReader(new InputStreamReader(System.in)) String line = ""; line "" try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			} (line = inMsg.readLine()) != null (line = inMsg.readLine()) line inMsg.readLine() inMsg.readLine inMsg null {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			} String[] ab = line.split(" "); ab line.split(" ") line.split line " " Integer a = 0; a 0 Integer b = 0; b 0 Integer sqr = 0; sqr 0 Integer liner = 0; liner 0 a = Integer.parseInt(ab[0]) a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 b = Integer.parseInt(ab[1]) b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 sqr = a * b sqr a * b a b liner = a * 2 + b *2 liner a * 2 + b *2 a * 2 a 2 b *2 b 2 System.out.println(sqr + " " + liner) System.out.println System.out System System.out sqr + " " + liner sqr + " " + liner sqr " " liner String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

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

public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				String[] ab = line.split(" ");
				Integer a = 0;
				Integer b = 0;
				Integer sqr = 0;
				Integer liner = 0;
				
				a = Integer.parseInt(ab[0]);
				b = Integer.parseInt(ab[1]);
				sqr = a * b;
				liner = a * 2 + b *2;

				System.out.println(sqr + " " + liner);
				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}