import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    }
} Main public static void main(String[] args) {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    } main {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    } int n1 n1 n2; n2 String str1 str1 str2; str2 Scanner in = new Scanner(System.in); in new Scanner(System.in) str1 = in.next() str1 in.next() in.next in str2 = in.next() str2 in.next() in.next in n1 = Integer.parseInt(str1) n1 Integer.parseInt(str1) Integer.parseInt Integer str1 n2 = Integer.parseInt(str2) n2 Integer.parseInt(str2) Integer.parseInt Integer str2 System.out.println(n1*n2 + " " + (n1*2 + n2*2) ) System.out.println System.out System System.out n1*n2 + " " + (n1*2 + n2*2) n1*n2 + " " + (n1*2 + n2*2) n1*n2 n1 n2 " " (n1*2 + n2*2) n1*2 n1 2 n2*2 n2 2 in.close() in.close in String[] args args public class Main{

	public static void main(String[] args) {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    }
} public class Main{

	public static void main(String[] args) {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    }
} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		int n1,n2;
		String str1,str2;

        Scanner in = new Scanner(System.in);

        str1 = in.next();
        str2 = in.next();

        n1 = Integer.parseInt(str1);
        n2 = Integer.parseInt(str2);

        System.out.println(n1*n2 + " " + (n1*2 + n2*2) );

        in.close();
    }
}