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