import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();
        int m = a * b;
        int s = 2 * a + 2 * b;
        System.out.println(m + " " + s);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();
        int m = a * b;
        int s = 2 * a + 2 * b;
        System.out.println(m + " " + s);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();
        int m = a * b;
        int s = 2 * a + 2 * b;
        System.out.println(m + " " + s);
    } main {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();
        int m = a * b;
        int s = 2 * a + 2 * b;
        System.out.println(m + " " + s);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int m = a * b; m a * b a b int s = 2 * a + 2 * b; s 2 * a + 2 * b 2 * a 2 a 2 * b 2 b System.out.println(m + " " + s) System.out.println System.out System System.out m + " " + s m + " " + s m " " s String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();
        int m = a * b;
        int s = 2 * a + 2 * b;
        System.out.println(m + " " + s);
    }
}