import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	} main {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int intTate = scan.nextInt(); intTate scan.nextInt() scan.nextInt scan int intYoko = scan.nextInt(); intYoko scan.nextInt() scan.nextInt scan int intArea = intTate * intYoko; intArea intTate * intYoko intTate intYoko int intOutLine = (intTate + intYoko) * 2; intOutLine (intTate + intYoko) * 2 (intTate + intYoko) intTate intYoko 2 System.out.println(intArea + " " + intOutLine) System.out.println System.out System System.out intArea + " " + intOutLine intArea + " " + intOutLine intArea " " intOutLine String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intTate = scan.nextInt();
		int intYoko = scan.nextInt();


		//System.out.println(intTate + " " + intYoko);

		int intArea = intTate * intYoko;

		int intOutLine = (intTate + intYoko) * 2;

		System.out.println(intArea + " " + intOutLine);

	}

}