
import static java.lang.Integer.parseInt;

public class Main {
    public static void main (String[] args ) {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    }
    public static double Rectangle (int x ,int y) {
        return x * y;
    }
    public static double RectangleLength (int x ,int y) {
        return (x *2) + (y * 2);
    }
} import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; public class Main {
    public static void main (String[] args ) {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    }
    public static double Rectangle (int x ,int y) {
        return x * y;
    }
    public static double RectangleLength (int x ,int y) {
        return (x *2) + (y * 2);
    }
} Main public static void main (String[] args ) {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    } main {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    } int i i j ; j String line = new java.util.Scanner ( System.in ).nextLine(); line new java.util.Scanner ( System.in ).nextLine() new java.util.Scanner ( System.in ).nextLine new java.util.Scanner ( System.in ) String[] number = line.split(" ", 0); number line.split(" ", 0) line.split line " " 0 i = (int) Rectangle (parseInt(number[0]), parseInt(number[1])) i (int) Rectangle (parseInt(number[0]), parseInt(number[1])) Rectangle parseInt(number[0]) parseInt number[0] number 0 parseInt(number[1]) parseInt number[1] number 1 j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1])) j (int) RectangleLength (parseInt(number[0]), parseInt(number[1])) RectangleLength parseInt(number[0]) parseInt number[0] number 0 parseInt(number[1]) parseInt number[1] number 1 System.out.println(i + " " + j) System.out.println System.out System System.out i + " " + j i + " " + j i " " j String[] args args public static double Rectangle (int x ,int y) {
        return x * y;
    } Rectangle {
        return x * y;
    } return x * y; x * y x y int x x int y y public static double RectangleLength (int x ,int y) {
        return (x *2) + (y * 2);
    } RectangleLength {
        return (x *2) + (y * 2);
    } return (x *2) + (y * 2); (x *2) + (y * 2) (x *2) x 2 (y * 2) y 2 int x x int y y public class Main {
    public static void main (String[] args ) {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    }
    public static double Rectangle (int x ,int y) {
        return x * y;
    }
    public static double RectangleLength (int x ,int y) {
        return (x *2) + (y * 2);
    }
} public class Main {
    public static void main (String[] args ) {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    }
    public static double Rectangle (int x ,int y) {
        return x * y;
    }
    public static double RectangleLength (int x ,int y) {
        return (x *2) + (y * 2);
    }
} Main

import static java.lang.Integer.parseInt;

public class Main {
    public static void main (String[] args ) {
        int i,j ;
        String line = new java.util.Scanner ( System.in ).nextLine();
        String[] number = line.split(" ", 0);

        i = (int) Rectangle (parseInt(number[0]), parseInt(number[1]));
        j = (int) RectangleLength (parseInt(number[0]), parseInt(number[1]));
        System.out.println(i + " " + j);
    }
    public static double Rectangle (int x ,int y) {
        return x * y;
    }
    public static double RectangleLength (int x ,int y) {
        return (x *2) + (y * 2);
    }
}