import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	}

}
 import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String strIn = new String(in.readLine()); strIn new String(in.readLine()) String[] strArray = strIn.split(" ", 2); strArray strIn.split(" ", 2) strIn.split strIn " " 2 int a = Integer.parseInt(strArray[0]) a Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 b = Integer.parseInt(strArray[1]); b Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 if(a < 1 || a > 100) {
			return;
		} a < 1 || a > 100 a < 1 a 1 a > 100 a 100 {
			return;
		} return; if(b < 1 || b > 100) {
			return;
		} b < 1 || b > 100 b < 1 b 1 b > 100 b 100 {
			return;
		} return; System.out.println((a * b) + " " + ((a + b) * 2)) System.out.println System.out System System.out (a * b) + " " + ((a + b) * 2) (a * b) + " " + ((a + b) * 2) (a * b) a b " " ((a + b) * 2) (a + b) a b 2 String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	}

} Main
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String strIn = new String(in.readLine());
		String[] strArray = strIn.split(" ", 2);
		int a = Integer.parseInt(strArray[0]), b = Integer.parseInt(strArray[1]);
		if(a < 1 || a > 100) {
			return;
		}
		if(b < 1 || b > 100) {
			return;
		}
		System.out.println((a * b) + " " + ((a + b) * 2));

	}

}

