import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	}
} Main public static void main(String[] args) {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	} main {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	} Scanner scanNum = new Scanner(System.in); scanNum new Scanner(System.in) try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		} Exception e {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		} System.out.println("?????????????????????"+e) System.out.println System.out System System.out "?????????????????????"+e "?????????????????????" e {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} int a = scanNum.nextInt(); a scanNum.nextInt() scanNum.nextInt scanNum int b = scanNum.nextInt(); b scanNum.nextInt() scanNum.nextInt scanNum System.out.println((a*b)+" "+(a*2+b*2)) System.out.println System.out System System.out (a*b)+" "+(a*2+b*2) (a*b)+" "+(a*2+b*2) (a*b) a b " " (a*2+b*2) a*2 a 2 b*2 b 2 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanNum = new Scanner(System.in);
		try {
			int a = scanNum.nextInt();
			int b = scanNum.nextInt();
			System.out.println((a*b)+" "+(a*2+b*2));
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("?????????????????????"+e);
		}

	}
}