import java.util.Scanner;
class Main {
    int x,y;
    public void suzuki(){
        Scanner sc = new Scanner(System.in);

        x = sc.nextInt();
        y = sc.nextInt();

        System.out.println(x * y + " " + 2 * (x + y));
    }
    public static void main(String[] args){

        new Main().suzuki();
    }

} import java.util.Scanner; Scanner java.util class Main {
    int x,y;
    public void suzuki(){
        Scanner sc = new Scanner(System.in);

        x = sc.nextInt();
        y = sc.nextInt();

        System.out.println(x * y + " " + 2 * (x + y));
    }
    public static void main(String[] args){

        new Main().suzuki();
    }

} Main int x x y; y public void suzuki(){
        Scanner sc = new Scanner(System.in);

        x = sc.nextInt();
        y = sc.nextInt();

        System.out.println(x * y + " " + 2 * (x + y));
    } suzuki {
        Scanner sc = new Scanner(System.in);

        x = sc.nextInt();
        y = sc.nextInt();

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

        new Main().suzuki();
    } main {

        new Main().suzuki();
    } new Main().suzuki() new Main().suzuki new Main() String[] args args
import java.util.Scanner;
class Main {
    int x,y;
    public void suzuki(){
        Scanner sc = new Scanner(System.in);

        x = sc.nextInt();
        y = sc.nextInt();

        System.out.println(x * y + " " + 2 * (x + y));
    }
    public static void main(String[] args){

        new Main().suzuki();
    }

}