import java.util.Scanner;
class Main {
    int a,b; 
    public void kami(){
            Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        
        System.out.println(a * b + " " + (a + b) * 2);   
    }

    public static void main(String[] args) {
        new Main().kami();
    }

} import java.util.Scanner; Scanner java.util class Main {
    int a,b; 
    public void kami(){
            Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        
        System.out.println(a * b + " " + (a + b) * 2);   
    }

    public static void main(String[] args) {
        new Main().kami();
    }

} Main int a a b; b public void kami(){
            Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        
        System.out.println(a * b + " " + (a + b) * 2);   
    } kami {
            Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        
        System.out.println(a * b + " " + (a + b) * 2);   
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc 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 public static void main(String[] args) {
        new Main().kami();
    } main {
        new Main().kami();
    } new Main().kami() new Main().kami new Main() String[] args args
import java.util.Scanner;
class Main {
    int a,b; 
    public void kami(){
            Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        
        System.out.println(a * b + " " + (a + b) * 2);   
    }

    public static void main(String[] args) {
        new Main().kami();
    }

}