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

class Rectangle {
    public void run() {
        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) {
        Rectangle test = new Rectangle();
        test.run();
    }
} import java.util.Scanner; Scanner java.util import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; class Rectangle {
    public void run() {
        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  );
    }
} Rectangle public void run() {
        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  );
    } run {
        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 public class Main {
    public static void main( String... args) {
        Rectangle test = new Rectangle();
        test.run();
    }
} Main public static void main( String... args) {
        Rectangle test = new Rectangle();
        test.run();
    } main {
        Rectangle test = new Rectangle();
        test.run();
    } Rectangle test = new Rectangle(); test new Rectangle() test.run() test.run test String... args args public class Main {
    public static void main( String... args) {
        Rectangle test = new Rectangle();
        test.run();
    }
} public class Main {
    public static void main( String... args) {
        Rectangle test = new Rectangle();
        test.run();
    }
} Main
import java.util.Scanner;
import static java.lang.System.out;

class Rectangle {
    public void run() {
        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) {
        Rectangle test = new Rectangle();
        test.run();
    }
}