import java.util.Scanner;
import java.util.Random;
import static java.lang.System.out;

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

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    }
} import java.util.Scanner; Scanner java.util import java.util.Random; Random java.util import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    } 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 out.printf("%d %d%n", a * b, (a * 2 + b * 2)) out.printf out "%d %d%n" a * b a b (a * 2 + b * 2) a * 2 a 2 b * 2 b 2 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    }
} Main
import java.util.Scanner;
import java.util.Random;
import static java.lang.System.out;

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

        out.printf("%d %d%n", a * b, (a * 2 + b * 2));                            

    }
}