import java.util.InputMismatchException;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
	try {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	}
    }
} import java.util.InputMismatchException; InputMismatchException java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
	try {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	}
    }
} Main public static void main(String[] args) {
	try {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	}
    } main {
	try {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	}
    } try {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	} InputMismatchException e {
	    System.out.println("??°?????\????????\??????????????????");
	} System.out.println("??°?????\????????\??????????????????") System.out.println System.out System System.out "??°?????\????????\??????????????????" {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int s = a * b; s a * b a b int l = 2 * (a + b); l 2 * (a + b) 2 (a + b) a b System.out.println(s + " " + l) System.out.println System.out System System.out s + " " + l s + " " + l s " " l scan.close() scan.close scan String[] args args
import java.util.InputMismatchException;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
	try {
	    Scanner scan = new Scanner(System.in);
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    int s = a * b;
	    int l = 2 * (a + b);
	    System.out.println(s + " " + l);
	    scan.close();
	} catch (InputMismatchException e) {
	    System.out.println("??°?????\????????\??????????????????");
	}
    }
}