import java.util.Scanner;
  
public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  }
} import java.util.Scanner; Scanner java.util public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  }
} Main public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  } main {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int x=Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int y=Integer.parseInt(sc.next()); y Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int S=2*x+y*2; S 2*x+y*2 2*x 2 x y*2 y 2 System.out.println(x*y +" "+ S) System.out.println System.out System System.out x*y +" "+ S x*y +" "+ S x*y x y " " S String[] args args public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  }
} public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  }
} Main
import java.util.Scanner;
  
public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x=Integer.parseInt(sc.next());
	  int y=Integer.parseInt(sc.next());
	  int S=2*x+y*2;
	  System.out.println(x*y +" "+ S);
    
  }
}