import java.util.Scanner;
public class Main{
    public static void main(String[] args)
   {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args)
   {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    }
} Main public static void main(String[] args)
   {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    } main {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int sum sum length; length sum = num1*num2 sum num1*num2 num1 num2 length = num1*2+num2*2 length num1*2+num2*2 num1*2 num1 2 num2*2 num2 2 System.out.println(sum+" "+length) System.out.println System.out System System.out sum+" "+length sum+" "+length sum " " length String[] args args public class Main{
    public static void main(String[] args)
   {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    }
} public class Main{
    public static void main(String[] args)
   {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args)
   {
	Scanner scan = new Scanner(System.in);
	
	int num1 = scan.nextInt();
	int num2 = scan.nextInt();

	int sum,length;

	sum = num1*num2;
	length = num1*2+num2*2;

	System.out.println(sum+" "+length);

	
    }
}