import java.io.*;
import java.util.Scanner;

public class Main{
               public static void main(String args[]){
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           }
    } import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main{
               public static void main(String args[]){
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           }
    } Main public static void main(String args[]){
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           } main {
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           } int x = 0; x 0 int y = 0; y 0 int z = 0; z 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) String buf1 = in.next(); buf1 in.next() in.next in String buf2 = in.next(); buf2 in.next() in.next in x = Integer.parseInt(buf1) x Integer.parseInt(buf1) Integer.parseInt Integer buf1 y = Integer.parseInt(buf2) y Integer.parseInt(buf2) Integer.parseInt Integer buf2 z = 2*x+2*y z 2*x+2*y 2*x 2 x 2*y 2 y System.out.println(x*y +" "+ z) System.out.println System.out System System.out x*y +" "+ z x*y +" "+ z x*y x y " " z String args[] args public class Main{
               public static void main(String args[]){
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           }
    } public class Main{
               public static void main(String args[]){
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           }
    } Main
import java.io.*;
import java.util.Scanner;

public class Main{
               public static void main(String args[]){
               
                 int x = 0;
                 int y = 0;
                 int z = 0;

                 Scanner in = new Scanner(System.in);
                 

                 String buf1 = in.next();
                 String buf2 = in.next();

                 x = Integer.parseInt(buf1);
                 y = Integer.parseInt(buf2); 
                 z = 2*x+2*y; 
          
   
                 System.out.println(x*y +" "+ z);
            
           }
    }