class Main{
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int area = a * b;
        int length = 2 * (a+b);
        System.out.println(String.format(
            "%d %d", area, length));
    }
} class Main{
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int area = a * b;
        int length = 2 * (a+b);
        System.out.println(String.format(
            "%d %d", area, length));
    }
} Main public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int area = a * b;
        int length = 2 * (a+b);
        System.out.println(String.format(
            "%d %d", area, length));
    } main {
        java.util.Scanner in = new java.util.Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int area = a * b;
        int length = 2 * (a+b);
        System.out.println(String.format(
            "%d %d", area, length));
    } java.util.Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int area = a * b; area a * b a b int length = 2 * (a+b); length 2 * (a+b) 2 (a+b) a b System.out.println(String.format(
            "%d %d", area, length)) System.out.println System.out System System.out String.format(
            "%d %d", area, length) String.format String "%d %d" area length String[] args args
class Main{
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int area = a * b;
        int length = 2 * (a+b);
        System.out.println(String.format(
            "%d %d", area, length));
    }
}