import java.util.Scanner;

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

class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		
		int tate, yoko;
		tate = scan.nextInt();
		yoko = scan.nextInt();
		
		System.out.print(tate * yoko + " ");
		System.out.println((tate + yoko) * 2);
	}
}