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

public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	}


} 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) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	}


} Main public static void main(String[] args) throws IOException {
		print();
	} main {
		print();
	} print() print String[] args args private static void print() throws IOException {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	} print {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	} int a; a int b; b BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] num = str.split(" ", 0); num str.split(" ", 0) str.split str " " 0 a = Integer.parseInt(num[0]) a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 b = Integer.parseInt(num[1]) b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 int area = a * b; area a * b a b int lengthOfAround = a * 2 + b * 2; lengthOfAround a * 2 + b * 2 a * 2 a 2 b * 2 b 2 System.out.println(area + " " + lengthOfAround) System.out.println System.out System System.out area + " " + lengthOfAround area + " " + lengthOfAround area " " lengthOfAround public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	}


} public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	}


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

public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int a;
		int b;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		a = Integer.parseInt(num[0]);
		b = Integer.parseInt(num[1]);

		int area = a * b;
		int lengthOfAround = a * 2 + b * 2;
		System.out.println(area + " " + lengthOfAround);

	}


}