import java.util.Scanner;

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

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