import java.util.Scanner;

 class Rectangle {
     private static int a;
     private static int b;

     static void run () {
        readInput();
        printCubic();
    }
     private static void readInput() {
        Scanner sc = new Scanner(System.in);
         a =sc.nextInt();
         b =sc.nextInt();
    }
     private static void printCubic (){
        System.out.println((a * b) + " " + ((a + b) * 2));
    }
}
public class Main {
    public static void main(String[] args) {
        Rectangle.run();
    }
} import java.util.Scanner; Scanner java.util class Rectangle {
     private static int a;
     private static int b;

     static void run () {
        readInput();
        printCubic();
    }
     private static void readInput() {
        Scanner sc = new Scanner(System.in);
         a =sc.nextInt();
         b =sc.nextInt();
    }
     private static void printCubic (){
        System.out.println((a * b) + " " + ((a + b) * 2));
    }
} Rectangle private static int a; a private static int b; b static void run () {
        readInput();
        printCubic();
    } run {
        readInput();
        printCubic();
    } readInput() readInput printCubic() printCubic private static void readInput() {
        Scanner sc = new Scanner(System.in);
         a =sc.nextInt();
         b =sc.nextInt();
    } readInput {
        Scanner sc = new Scanner(System.in);
         a =sc.nextInt();
         b =sc.nextInt();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a =sc.nextInt() a sc.nextInt() sc.nextInt sc b =sc.nextInt() b sc.nextInt() sc.nextInt sc private static void printCubic (){
        System.out.println((a * b) + " " + ((a + b) * 2));
    } printCubic {
        System.out.println((a * b) + " " + ((a + b) * 2));
    } System.out.println((a * b) + " " + ((a + b) * 2)) System.out.println System.out System System.out (a * b) + " " + ((a + b) * 2) (a * b) + " " + ((a + b) * 2) (a * b) a b " " ((a + b) * 2) (a + b) a b 2 public class Main {
    public static void main(String[] args) {
        Rectangle.run();
    }
} Main public static void main(String[] args) {
        Rectangle.run();
    } main {
        Rectangle.run();
    } Rectangle.run() Rectangle.run Rectangle String[] args args public class Main {
    public static void main(String[] args) {
        Rectangle.run();
    }
} public class Main {
    public static void main(String[] args) {
        Rectangle.run();
    }
} Main
import java.util.Scanner;

 class Rectangle {
     private static int a;
     private static int b;

     static void run () {
        readInput();
        printCubic();
    }
     private static void readInput() {
        Scanner sc = new Scanner(System.in);
         a =sc.nextInt();
         b =sc.nextInt();
    }
     private static void printCubic (){
        System.out.println((a * b) + " " + ((a + b) * 2));
    }
}
public class Main {
    public static void main(String[] args) {
        Rectangle.run();
    }
}