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

public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} Main public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    } main {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    } try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } catch (Exception e) {
            System.exit(-1);
        } Exception e {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in)); stdReader new BufferedReader( new InputStreamReader(System.in)) String seedStr = stdReader.readLine(); seedStr stdReader.readLine() stdReader.readLine stdReader String[] inputStr = seedStr.split(" "); inputStr seedStr.split(" ") seedStr.split seedStr " " String tateStr = inputStr[0]; tateStr inputStr[0] inputStr 0 String yokoStr = inputStr[1]; yokoStr inputStr[1] inputStr 1 Integer tate = Integer.valueOf(tateStr); tate Integer.valueOf(tateStr) Integer.valueOf Integer tateStr Integer yoko = Integer.valueOf(yokoStr); yoko Integer.valueOf(yokoStr) Integer.valueOf Integer yokoStr System.out.println(tate*yoko + " " + 2*(tate+yoko)) System.out.println System.out System System.out tate*yoko + " " + 2*(tate+yoko) tate*yoko + " " + 2*(tate+yoko) tate*yoko tate yoko " " 2*(tate+yoko) 2 (tate+yoko) tate yoko System.exit(0) System.exit System 0 stdReader.close() stdReader.close stdReader String[] args args public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));
            String seedStr = stdReader.readLine();

            String[] inputStr = seedStr.split(" ");

            String tateStr = inputStr[0];
            String yokoStr = inputStr[1];

            Integer tate = Integer.valueOf(tateStr);
            Integer yoko = Integer.valueOf(yokoStr);
 
            System.out.println(tate*yoko + " " + 2*(tate+yoko));
            System.exit(0);

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
}