import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	}
} Main public static void main(String[] args){
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	} main {
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	} Scanner kbScanner = new Scanner(System.in); kbScanner new Scanner(System.in) int longth = kbScanner.nextInt(); longth kbScanner.nextInt() kbScanner.nextInt kbScanner int side = kbScanner.nextInt(); side kbScanner.nextInt() kbScanner.nextInt kbScanner int area = longth * side; area longth * side longth side int length = 2 * (longth + side); length 2 * (longth + side) 2 (longth + side) longth side System.out.println(area + " " + length) System.out.println System.out System System.out area + " " + length area + " " + length area " " length String[] args args public class Main{
	public static void main(String[] args){
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	}
} public class Main{
	public static void main(String[] args){
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner kbScanner = new Scanner(System.in);
		int longth = kbScanner.nextInt();
		int side = kbScanner.nextInt();
		
		int area = longth * side;
		int length = 2 * (longth + side);
		System.out.println(area + " " + length);
	}
}