import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by S64 on 15/07/26.
 */
class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = br.readLine().split(" ");
        int arg1 = Integer.parseInt(inputs[0]);
        int arg2 = Integer.parseInt(inputs[1]);
        int rectangle, length;
        {
            rectangle = arg1 * arg2;
            length = (arg1 + arg2) * 2;
        }
        {
            System.out.println( String.format("%d %d", rectangle, length) );
        }
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = br.readLine().split(" ");
        int arg1 = Integer.parseInt(inputs[0]);
        int arg2 = Integer.parseInt(inputs[1]);
        int rectangle, length;
        {
            rectangle = arg1 * arg2;
            length = (arg1 + arg2) * 2;
        }
        {
            System.out.println( String.format("%d %d", rectangle, length) );
        }
    }

} Main public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = br.readLine().split(" ");
        int arg1 = Integer.parseInt(inputs[0]);
        int arg2 = Integer.parseInt(inputs[1]);
        int rectangle, length;
        {
            rectangle = arg1 * arg2;
            length = (arg1 + arg2) * 2;
        }
        {
            System.out.println( String.format("%d %d", rectangle, length) );
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = br.readLine().split(" ");
        int arg1 = Integer.parseInt(inputs[0]);
        int arg2 = Integer.parseInt(inputs[1]);
        int rectangle, length;
        {
            rectangle = arg1 * arg2;
            length = (arg1 + arg2) * 2;
        }
        {
            System.out.println( String.format("%d %d", rectangle, length) );
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] inputs = br.readLine().split(" "); inputs br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int arg1 = Integer.parseInt(inputs[0]); arg1 Integer.parseInt(inputs[0]) Integer.parseInt Integer inputs[0] inputs 0 int arg2 = Integer.parseInt(inputs[1]); arg2 Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 int rectangle rectangle length; length {
            rectangle = arg1 * arg2;
            length = (arg1 + arg2) * 2;
        } rectangle = arg1 * arg2 rectangle arg1 * arg2 arg1 arg2 length = (arg1 + arg2) * 2 length (arg1 + arg2) * 2 (arg1 + arg2) arg1 arg2 2 {
            System.out.println( String.format("%d %d", rectangle, length) );
        } System.out.println( String.format("%d %d", rectangle, length) ) System.out.println System.out System System.out String.format("%d %d", rectangle, length) String.format String "%d %d" rectangle length String args[] args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by S64 on 15/07/26.
 */
class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] inputs = br.readLine().split(" ");
        int arg1 = Integer.parseInt(inputs[0]);
        int arg2 = Integer.parseInt(inputs[1]);
        int rectangle, length;
        {
            rectangle = arg1 * arg2;
            length = (arg1 + arg2) * 2;
        }
        {
            System.out.println( String.format("%d %d", rectangle, length) );
        }
    }

}