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