import java.util.*;

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

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int a = scn.nextInt(), b = scn.nextInt();
        System.out.println(a * b + " " + (a + b) * 2);
    }
}