import java.io.*;
class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String s = r.readLine();    
        String[] w = s.split(" ",0); 
        int tate=Integer.parseInt(w[0]);
        int yoko=Integer.parseInt(w[1]);
        
        
        System.out.println(tate*yoko+" "+2*(tate+yoko));
        
        r.close();
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String s = r.readLine();    
        String[] w = s.split(" ",0); 
        int tate=Integer.parseInt(w[0]);
        int yoko=Integer.parseInt(w[1]);
        
        
        System.out.println(tate*yoko+" "+2*(tate+yoko));
        
        r.close();
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String s = r.readLine();    
        String[] w = s.split(" ",0); 
        int tate=Integer.parseInt(w[0]);
        int yoko=Integer.parseInt(w[1]);
        
        
        System.out.println(tate*yoko+" "+2*(tate+yoko));
        
        r.close();
    } main {
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String s = r.readLine();    
        String[] w = s.split(" ",0); 
        int tate=Integer.parseInt(w[0]);
        int yoko=Integer.parseInt(w[1]);
        
        
        System.out.println(tate*yoko+" "+2*(tate+yoko));
        
        r.close();
    } BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) String s = r.readLine(); s r.readLine() r.readLine r String[] w = s.split(" ",0); w s.split(" ",0) s.split s " " 0 int tate=Integer.parseInt(w[0]); tate Integer.parseInt(w[0]) Integer.parseInt Integer w[0] w 0 int yoko=Integer.parseInt(w[1]); yoko Integer.parseInt(w[1]) Integer.parseInt Integer w[1] w 1 System.out.println(tate*yoko+" "+2*(tate+yoko)) System.out.println System.out System System.out tate*yoko+" "+2*(tate+yoko) tate*yoko+" "+2*(tate+yoko) tate*yoko tate yoko " " 2*(tate+yoko) 2 (tate+yoko) tate yoko r.close() r.close r String[] args args
import java.io.*;
class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String s = r.readLine();    
        String[] w = s.split(" ",0); 
        int tate=Integer.parseInt(w[0]);
        int yoko=Integer.parseInt(w[1]);
        
        
        System.out.println(tate*yoko+" "+2*(tate+yoko));
        
        r.close();
    }
}