import java.util.Scanner;

public class Main{
	public static void main(String[]args){
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[]args){
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	}
} Main public static void main(String[]args){
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	} main {
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	} Scanner scan= new Scanner(System.in); scan new Scanner(System.in) String n1 = scan.next(); n1 scan.next() scan.next scan String n2 = scan.next(); n2 scan.next() scan.next scan Integer a = new Integer(n1); a new Integer(n1) Integer b = new Integer(n2); b new Integer(n2) int side = 2*(a+b); side 2*(a+b) 2 (a+b) a b int area = a*b; area a*b a b System.out.println(area + " " +side) System.out.println System.out System System.out area + " " +side area + " " +side area " " side String[]args args public class Main{
	public static void main(String[]args){
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	}
} public class Main{
	public static void main(String[]args){
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[]args){
		Scanner scan= new Scanner(System.in);
		String n1 = scan.next();
		String n2 = scan.next();
		
		Integer a = new Integer(n1);
		Integer b = new Integer(n2);
	
		int side = 2*(a+b);
		int area = a*b;
		
		System.out.println(area + " " +side);

		
	}
}