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

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

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

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

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

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