import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    }
} Main public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    } main {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    } Scanner a=new Scanner(System.in); a new Scanner(System.in) int x=a.nextInt(); x a.nextInt() a.nextInt a int y=a.nextInt(); y a.nextInt() a.nextInt a System.out.print(x*y+" ") System.out.print System.out System System.out x*y+" " x*y x y " " System.out.println(2*(x+y)) System.out.println System.out System System.out 2*(x+y) 2 (x+y) x y String[] args args public class Main {

    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    }
} public class Main {

    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int x=a.nextInt();
        int y=a.nextInt();
        System.out.print(x*y+" ");
        System.out.println(2*(x+y));
    }
}