import java.io.*;
import java.util.Scanner;

class Main
{
	public static void main (String[] args) throws IOException
	{
		String A,B;
		int a,b,s,l;
		
		Scanner in = new Scanner(System.in);
		
		A = in.next();
		B = in.next();
		
		a = Integer.parseInt(A);
		b = Integer.parseInt(B);

		s = a * b;
		l = 2 * (a + b);
		
		System.out.println(s + " " + l);
	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util class Main
{
	public static void main (String[] args) throws IOException
	{
		String A,B;
		int a,b,s,l;
		
		Scanner in = new Scanner(System.in);
		
		A = in.next();
		B = in.next();
		
		a = Integer.parseInt(A);
		b = Integer.parseInt(B);

		s = a * b;
		l = 2 * (a + b);
		
		System.out.println(s + " " + l);
	}
} Main public static void main (String[] args) throws IOException
	{
		String A,B;
		int a,b,s,l;
		
		Scanner in = new Scanner(System.in);
		
		A = in.next();
		B = in.next();
		
		a = Integer.parseInt(A);
		b = Integer.parseInt(B);

		s = a * b;
		l = 2 * (a + b);
		
		System.out.println(s + " " + l);
	} main {
		String A,B;
		int a,b,s,l;
		
		Scanner in = new Scanner(System.in);
		
		A = in.next();
		B = in.next();
		
		a = Integer.parseInt(A);
		b = Integer.parseInt(B);

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

class Main
{
	public static void main (String[] args) throws IOException
	{
		String A,B;
		int a,b,s,l;
		
		Scanner in = new Scanner(System.in);
		
		A = in.next();
		B = in.next();
		
		a = Integer.parseInt(A);
		b = Integer.parseInt(B);

		s = a * b;
		l = 2 * (a + b);
		
		System.out.println(s + " " + l);
	}
}