import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        
        double a = s.nextInt();
        double b = s.nextInt();
        
        System.out.print(a*b + " ");
        System.out.println(a+a+b+b);
        
        String str = s.next();
        
        System.out.println(str);
        
        
          
    }

}