import java.util.Scanner;
public class Main{
 int tate;
 int yoko;
 int seki=0;
 int syu=0;
  
  public void solve(){
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    seki=tate*yoko;
    syu=tate*2+yoko*2;
    System.out.println(seki+" "+syu);
}


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


public static void main(String[] args){
    Main obj=new Main();
    obj.solve();
}
} Main int tate; tate int yoko; yoko int seki=0; seki 0 int syu=0; syu 0 public void solve(){
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    seki=tate*yoko;
    syu=tate*2+yoko*2;
    System.out.println(seki+" "+syu);
} solve {
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    seki=tate*yoko;
    syu=tate*2+yoko*2;
    System.out.println(seki+" "+syu);
} Scanner sc= new Scanner(System.in); sc new Scanner(System.in) tate= sc.nextInt() tate sc.nextInt() sc.nextInt sc yoko= sc.nextInt() yoko sc.nextInt() sc.nextInt sc seki=tate*yoko seki tate*yoko tate yoko syu=tate*2+yoko*2 syu tate*2+yoko*2 tate*2 tate 2 yoko*2 yoko 2 System.out.println(seki+" "+syu) System.out.println System.out System System.out seki+" "+syu seki+" "+syu seki " " syu public static void main(String[] args){
    Main obj=new Main();
    obj.solve();
} main {
    Main obj=new Main();
    obj.solve();
} Main obj=new Main(); obj new Main() obj.solve() obj.solve obj String[] args args public class Main{
 int tate;
 int yoko;
 int seki=0;
 int syu=0;
  
  public void solve(){
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    seki=tate*yoko;
    syu=tate*2+yoko*2;
    System.out.println(seki+" "+syu);
}


public static void main(String[] args){
    Main obj=new Main();
    obj.solve();
}
} public class Main{
 int tate;
 int yoko;
 int seki=0;
 int syu=0;
  
  public void solve(){
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    seki=tate*yoko;
    syu=tate*2+yoko*2;
    System.out.println(seki+" "+syu);
}


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


public static void main(String[] args){
    Main obj=new Main();
    obj.solve();
}
}