import java.util.Scanner;

public class Main {

    private static final String format = "%d %d";

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

        System.out.println(String.format(format, (a * b), (2 * (a + b))));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    private static final String format = "%d %d";

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

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

        System.out.println(String.format(format, (a * b), (2 * (a + b))));
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        System.out.println(String.format(format, (a * b), (2 * (a + b))));
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println(String.format(format, (a * b), (2 * (a + b)))) System.out.println System.out System System.out String.format(format, (a * b), (2 * (a + b))) String.format String format (a * b) a b (2 * (a + b)) 2 (a + b) a b String[] args args public class Main {

    private static final String format = "%d %d";

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

        System.out.println(String.format(format, (a * b), (2 * (a + b))));
    }
} public class Main {

    private static final String format = "%d %d";

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

        System.out.println(String.format(format, (a * b), (2 * (a + b))));
    }
} Main
import java.util.Scanner;

public class Main {

    private static final String format = "%d %d";

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

        System.out.println(String.format(format, (a * b), (2 * (a + b))));
    }
}