import java.util.*;

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

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