import java.util.Scanner;

public class Main {

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

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = Integer.parseInt(scanner.next()); a Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int b = Integer.parseInt(scanner.next()); b Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int area = a * b; area a * b a b int permimeter = 2 * a + 2 * b; permimeter 2 * a + 2 * b 2 * a 2 a 2 * b 2 b System.out.println(area + " " + permimeter) System.out.println System.out System System.out area + " " + permimeter area + " " + permimeter area " " permimeter String[] args args public class Main {

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

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    }
} public class Main {

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

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    }
} Main
import java.util.Scanner;

public class Main {

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

        int area = a * b;
        int permimeter = 2 * a + 2 * b;

        System.out.println(area + " " + permimeter);
    }
}