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