import java.util.Scanner;

class Main {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int heigt  = scan.nextInt();
		int width = scan.nextInt();
		scan.close();

		int area = heigt * width;
		int circum = 2*(heigt + width);

		System.out.println(area + " " + circum);

	}

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

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int heigt  = scan.nextInt();
		int width = scan.nextInt();
		scan.close();

		int area = heigt * width;
		int circum = 2*(heigt + width);

		System.out.println(area + " " + circum);

	}

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

		Scanner scan = new Scanner(System.in);
		int heigt  = scan.nextInt();
		int width = scan.nextInt();
		scan.close();

		int area = heigt * width;
		int circum = 2*(heigt + width);

		System.out.println(area + " " + circum);

	} main {

		Scanner scan = new Scanner(System.in);
		int heigt  = scan.nextInt();
		int width = scan.nextInt();
		scan.close();

		int area = heigt * width;
		int circum = 2*(heigt + width);

		System.out.println(area + " " + circum);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int heigt  = scan.nextInt(); heigt scan.nextInt() scan.nextInt scan int width = scan.nextInt(); width scan.nextInt() scan.nextInt scan scan.close() scan.close scan int area = heigt * width; area heigt * width heigt width int circum = 2*(heigt + width); circum 2*(heigt + width) 2 (heigt + width) heigt width System.out.println(area + " " + circum) System.out.println System.out System System.out area + " " + circum area + " " + circum area " " circum String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int heigt  = scan.nextInt();
		int width = scan.nextInt();
		scan.close();

		int area = heigt * width;
		int circum = 2*(heigt + width);

		System.out.println(area + " " + circum);

	}

}