import java.util.*;

class Main
{
	public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
} import java.util.*; util.* java class Main
{
	public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
} Main public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		}
		catch (Exception e) {
			System.out.println(e);
		}
	} main {

		try {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		}
		catch (Exception e) {
			System.out.println(e);
		}
	} try {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		}
		catch (Exception e) {
			System.out.println(e);
		} catch (Exception e) {
			System.out.println(e);
		} Exception e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc System.out.println((a*b) +" "+ (a+a+b+b)) System.out.println System.out System System.out (a*b) +" "+ (a+a+b+b) (a*b) +" "+ (a+a+b+b) (a*b) a b " " (a+a+b+b) b a+a+b+b a a b b String args[] args
import java.util.*;

class Main
{
	public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int a = Integer.parseInt(sc.next());
			int b = Integer.parseInt(sc.next());



			System.out.println((a*b) +" "+ (a+a+b+b));
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
}