import java.io.*;

class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String[] line = reader.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);
        
        int area = a * b;
        int areaLength = ( a + b ) * 2;

        System.out.println(area + " " + areaLength);
    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String[] line = reader.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);
        
        int area = a * b;
        int areaLength = ( a + b ) * 2;

        System.out.println(area + " " + areaLength);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String[] line = reader.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);
        
        int area = a * b;
        int areaLength = ( a + b ) * 2;

        System.out.println(area + " " + areaLength);
    } main {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String[] line = reader.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);
        
        int area = a * b;
        int areaLength = ( a + b ) * 2;

        System.out.println(area + " " + areaLength);
    } BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] line = reader.readLine().split(" "); line reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int area = a * b; area a * b a b int areaLength = ( a + b ) * 2; areaLength ( a + b ) * 2 ( a + b ) a b 2 System.out.println(area + " " + areaLength) System.out.println System.out System System.out area + " " + areaLength area + " " + areaLength area " " areaLength String[] args args
import java.io.*;

class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String[] line = reader.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);
        
        int area = a * b;
        int areaLength = ( a + b ) * 2;

        System.out.println(area + " " + areaLength);
    }
}