import java.util.Scanner;
public class Main
{
	public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	}
} Main public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	} main {
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	} int n n m; m Scanner input = new Scanner(System.in); input new Scanner(System.in) n = input.nextInt() n input.nextInt() input.nextInt input m = input.nextInt() m input.nextInt() input.nextInt input System.out.println(n*m + " " + 2*(n+m)) System.out.println System.out System System.out n*m + " " + 2*(n+m) n*m + " " + 2*(n+m) n*m n m " " 2*(n+m) 2 (n+m) n m String args[] args public class Main
{
	public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	}
} public class Main
{
	public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));
	}
}