import java.util.Scanner;

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

public class Main{
	public static void main (String[] args){
		int men=0, len=0;
		
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		men = a*b;
		len = a*2+b*2;
		
		System.out.println(men+" "+len);
	}
}