import java.io.*;
import java.util.*;

public class Main {


	public static void solver() {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	}	
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		Main.solver();
	}
		
	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} import java.io.*; io.* java import java.util.*; util.* java public class Main {


	public static void solver() {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	}	
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		Main.solver();
	}
		
	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} Main static Scanner     cin; cin static PrintStream cout = System.out;//標準出力 cout System.out System System.out public static void solver() {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	} solver {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	} int a = cin.nextInt(); a cin.nextInt() cin.nextInt cin int b = cin.nextInt(); b cin.nextInt() cin.nextInt cin cout.printf("%d %d\n", a*b, 2*(a+b)) cout.printf cout "%d %d\n" a*b a b 2*(a+b) 2 (a+b) a b public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		Main.solver();
	} main {

		cin = new Scanner(System.in);
		Main.solver();
	} cin = new Scanner(System.in) cin new Scanner(System.in) Main.solver() Main.solver Main String[] args args public class Main {


	public static void solver() {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	}	
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		Main.solver();
	}
		
	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} public class Main {


	public static void solver() {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	}	
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		Main.solver();
	}
		
	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} Main
import java.io.*;
import java.util.*;

public class Main {


	public static void solver() {
	
		int a = cin.nextInt();
		int b = cin.nextInt();
		
		cout.printf("%d %d\n", a*b, 2*(a+b));

	}	
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		Main.solver();
	}
		
	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
}