import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    }

    private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    }

    private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} Main public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    } main {
        final String line = readLine();
        System.out.println(calc(line));
    } final String line = readLine(); line readLine() readLine System.out.println(calc(line)) System.out.println System.out System System.out calc(line) calc line String[] args args protected static String calc(String input) {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    } calc {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    } String s[] = input.split(" "); s input.split(" ") input.split input " " int y = Integer.parseInt(s[0]); y Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int x = Integer.parseInt(s[1]); x Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int area = y * x; area y * x y x int circumference = y + y + x + x; circumference y + y + x + x x y + y + x + x y y x x return area + " " + circumference; area + " " + circumference area + " " + circumference area " " circumference String input input private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    } readLine {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    } Scanner s = null; s null try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        } {
            if (s != null) {
                s.close();
            }
        } if (s != null) {
                s.close();
            } s != null s null {
                s.close();
            } s.close() s.close s {
            s = new Scanner(System.in);
            return s.nextLine();
        } s = new Scanner(System.in) s new Scanner(System.in) return s.nextLine(); s.nextLine() s.nextLine s public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    }

    private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    }

    private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        String s[] = input.split(" ");

        int y = Integer.parseInt(s[0]);
        int x = Integer.parseInt(s[1]);

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    }

    private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
}