import java.util.*;

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

class Main{
   public static void main(String[] args){
      Scanner x = new Scanner(System.in);
   int a,b,c,d;
    a = x.nextInt();
    b = x.nextInt();
    c = a*b;
    a = a*2+b*2;
   System.out.println(c+" "+a);
}
}