import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    }
} Main public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    } main {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    } 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 int c = a * b; c a * b a b int d = 2 * (a + b); d 2 * (a + b) 2 (a + b) a b String s = String.valueOf(c + " " + d); s String.valueOf(c + " " + d) String.valueOf String c + " " + d c + " " + d c " " d System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    }
} public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    }
} Main
import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a * b;
        int d = 2 * (a + b);

        String s = String.valueOf(c + " " + d);
        System.out.println(s);

    }
}