import java.util.Scanner;

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	}
	
	public static void main(String[] args) {
		Main run =new Main ();
		run.calc();

	}
} import java.util.Scanner; Scanner java.util public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	}
	
	public static void main(String[] args) {
		Main run =new Main ();
		run.calc();

	}
} Main private void calc(){
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	} calc {
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int Leng =scanner.nextInt(); Leng scanner.nextInt() scanner.nextInt scanner int High =scanner.nextInt(); High scanner.nextInt() scanner.nextInt scanner int S=Leng*High; S Leng*High Leng High int P=(Leng+High)*2; P (Leng+High)*2 (Leng+High) Leng High 2 System.out.print(S+" ") System.out.print System.out System System.out S+" " S " " System.out.println(P) System.out.println System.out System System.out P public static void main(String[] args) {
		Main run =new Main ();
		run.calc();

	} main {
		Main run =new Main ();
		run.calc();

	} Main run =new Main (); run new Main () run.calc() run.calc run String[] args args public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	}
	
	public static void main(String[] args) {
		Main run =new Main ();
		run.calc();

	}
} public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	}
	
	public static void main(String[] args) {
		Main run =new Main ();
		run.calc();

	}
} Main
import java.util.Scanner;

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int Leng =scanner.nextInt();
		int High =scanner.nextInt();
		
		int S=Leng*High;
		int P=(Leng+High)*2;
		
		System.out.print(S+" ");
		System.out.println(P);
	}
	
	public static void main(String[] args) {
		Main run =new Main ();
		run.calc();

	}
}