import static java.lang.System.out;
public class Main {
     public static void main(String[] args){
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     }
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; public class Main {
     public static void main(String[] args){
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     }
} Main public static void main(String[] args){
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     } main {
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     } String str = new java.util.Scanner(System.in).nextLine(); str new java.util.Scanner(System.in).nextLine() new java.util.Scanner(System.in).nextLine new java.util.Scanner(System.in) String[] tmp = str.split(" "); tmp str.split(" ") str.split str " " int a = Integer.parseInt(tmp[0]); a Integer.parseInt(tmp[0]) Integer.parseInt Integer tmp[0] tmp 0 int b = Integer.parseInt(tmp[1]); b Integer.parseInt(tmp[1]) Integer.parseInt Integer tmp[1] tmp 1 int area = a * b; area a * b a b int circu = (a + b) * 2; circu (a + b) * 2 (a + b) a b 2 out.print(area + " ") out.print out area + " " area " " out.println(circu) out.println out circu String[] args args public class Main {
     public static void main(String[] args){
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     }
} public class Main {
     public static void main(String[] args){
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     }
} Main
import static java.lang.System.out;
public class Main {
     public static void main(String[] args){
          String str = new java.util.Scanner(System.in).nextLine();
          String[] tmp = str.split(" ");
          int a = Integer.parseInt(tmp[0]);
          int b = Integer.parseInt(tmp[1]);
          
          int area = a * b;
          int circu = (a + b) * 2;
          out.print(area + " ");                                                                                                           
          out.println(circu);
     }
}