import java.util.Scanner;


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


public class Main {
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int a= scanner.nextInt();
		int b= scanner.nextInt();
		System.out.println(Integer.toString(a*b)+" "+Integer.toString(a*2+b*2));
		scanner.close();
	}
}