import java.util.Scanner;
public class Main
{
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	}

	//??¢???????±???????????????????
	public static int area(int a, int b){
		int ans;
		ans = a * b;
		return ans;
	}
	//??¨?????????????±???????????????????
	public static int length(int a, int b){
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	}

	//??¢???????±???????????????????
	public static int area(int a, int b){
		int ans;
		ans = a * b;
		return ans;
	}
	//??¨?????????????±???????????????????
	public static int length(int a, int b){
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	}
} Main public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	} main {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int area = area(a,b); area area(a,b) area a b int lenght = length(a,b); lenght length(a,b) length a b System.out.println(area + " " + lenght) System.out.println System.out System System.out area + " " + lenght area + " " + lenght area " " lenght String[] args args //??¢???????±???????????????????
	public static int area(int a, int b){
		int ans;
		ans = a * b;
		return ans;
	} area {
		int ans;
		ans = a * b;
		return ans;
	} int ans; ans ans = a * b ans a * b a b return ans; ans int a a int b b //??¨?????????????±???????????????????
	public static int length(int a, int b){
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	} length {
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	} int ans = 0; ans 0 ans += a ans a ans += a ans a ans += b ans b ans += b ans b return ans; ans int a a int b b public class Main
{
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	}

	//??¢???????±???????????????????
	public static int area(int a, int b){
		int ans;
		ans = a * b;
		return ans;
	}
	//??¨?????????????±???????????????????
	public static int length(int a, int b){
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	}
} public class Main
{
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	}

	//??¢???????±???????????????????
	public static int area(int a, int b){
		int ans;
		ans = a * b;
		return ans;
	}
	//??¨?????????????±???????????????????
	public static int length(int a, int b){
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int area = area(a,b);
		int lenght = length(a,b);
		System.out.println(area + " " + lenght);
	}

	//??¢???????±???????????????????
	public static int area(int a, int b){
		int ans;
		ans = a * b;
		return ans;
	}
	//??¨?????????????±???????????????????
	public static int length(int a, int b){
		int ans = 0;
		ans += a;
		ans += a;
		ans += b;
		ans += b;
		return ans;
	}
}