import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    } main {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        } catch (Exception e) {
            // TODO: handle exception
        } Exception e {
            // TODO: handle exception
        } {
            sc.close();
        } sc.close() sc.close sc {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } int vertical = sc.nextInt(); vertical sc.nextInt() sc.nextInt sc int horizontal = sc.nextInt(); horizontal sc.nextInt() sc.nextInt sc int size = vertical * horizontal; size vertical * horizontal vertical horizontal int circuit = 2 * vertical + 2 * horizontal; circuit 2 * vertical + 2 * horizontal 2 * vertical 2 vertical 2 * horizontal 2 horizontal StringBuffer sb = new StringBuffer(size + " " + circuit); sb new StringBuffer(size + " " + circuit) System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int vertical = sc.nextInt();
            int horizontal = sc.nextInt();
            int size = vertical * horizontal;
            int circuit = 2 * vertical + 2 * horizontal;
            StringBuffer sb = new StringBuffer(size + " " + circuit);
            System.out.println(sb);
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }
    }
}