import java.util.Scanner;

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

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

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

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

}