import java.util.*;

class Rectangle {
    public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        final int a = sc.nextInt();
        final int b = sc.nextInt();
        System.out.printf("%d %d\n", a * b, (a + b) * 2);
    }
}
public class Main {
    public static void main(String... args) {
        Rectangle.main();
    }
} import java.util.*; util.* java class Rectangle {
    public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        final int a = sc.nextInt();
        final int b = sc.nextInt();
        System.out.printf("%d %d\n", a * b, (a + b) * 2);
    }
} Rectangle public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        final int a = sc.nextInt();
        final int b = sc.nextInt();
        System.out.printf("%d %d\n", a * b, (a + b) * 2);
    } main {
        final Scanner sc = new Scanner(System.in);
        final int a = sc.nextInt();
        final int b = sc.nextInt();
        System.out.printf("%d %d\n", a * b, (a + b) * 2);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc final int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc System.out.printf("%d %d\n", a * b, (a + b) * 2) System.out.printf System.out System System.out "%d %d\n" a * b a b (a + b) * 2 (a + b) a b 2 String...args args public class Main {
    public static void main(String... args) {
        Rectangle.main();
    }
} Main public static void main(String... args) {
        Rectangle.main();
    } main {
        Rectangle.main();
    } Rectangle.main() Rectangle.main Rectangle String... args args public class Main {
    public static void main(String... args) {
        Rectangle.main();
    }
} public class Main {
    public static void main(String... args) {
        Rectangle.main();
    }
} Main
import java.util.*;

class Rectangle {
    public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        final int a = sc.nextInt();
        final int b = sc.nextInt();
        System.out.printf("%d %d\n", a * b, (a + b) * 2);
    }
}
public class Main {
    public static void main(String... args) {
        Rectangle.main();
    }
}