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