import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input= sc.nextLine();
        String[] inputStrArray = input.split(" ");
        int[] intputIntArray = new int[inputStrArray.length];
 
        for (int index = 0; index < intputIntArray.length; index++) {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        }
        // 面積
        int squareSize = intputIntArray[0] * intputIntArray[1];
        // 周
        int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2;
 
        System.out.println(squareSize + " " + squareLength );
 
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input= sc.nextLine();
        String[] inputStrArray = input.split(" ");
        int[] intputIntArray = new int[inputStrArray.length];
 
        for (int index = 0; index < intputIntArray.length; index++) {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        }
        // 面積
        int squareSize = intputIntArray[0] * intputIntArray[1];
        // 周
        int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2;
 
        System.out.println(squareSize + " " + squareLength );
 
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input= sc.nextLine();
        String[] inputStrArray = input.split(" ");
        int[] intputIntArray = new int[inputStrArray.length];
 
        for (int index = 0; index < intputIntArray.length; index++) {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        }
        // 面積
        int squareSize = intputIntArray[0] * intputIntArray[1];
        // 周
        int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2;
 
        System.out.println(squareSize + " " + squareLength );
 
    } main {
        Scanner sc = new Scanner(System.in);
        String input= sc.nextLine();
        String[] inputStrArray = input.split(" ");
        int[] intputIntArray = new int[inputStrArray.length];
 
        for (int index = 0; index < intputIntArray.length; index++) {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        }
        // 面積
        int squareSize = intputIntArray[0] * intputIntArray[1];
        // 周
        int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2;
 
        System.out.println(squareSize + " " + squareLength );
 
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input= sc.nextLine(); input sc.nextLine() sc.nextLine sc String[] inputStrArray = input.split(" "); inputStrArray input.split(" ") input.split input " " int[] intputIntArray = new int[inputStrArray.length]; intputIntArray new int[inputStrArray.length] inputStrArray.length inputStrArray inputStrArray.length for (int index = 0; index < intputIntArray.length; index++) {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        } int index = 0; int index = 0; index 0 index < intputIntArray.length index intputIntArray.length intputIntArray intputIntArray.length index++ index++ index {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        } {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        } intputIntArray[index] = Integer.parseInt(inputStrArray[index]) intputIntArray[index] intputIntArray index Integer.parseInt(inputStrArray[index]) Integer.parseInt Integer inputStrArray[index] inputStrArray index int squareSize = intputIntArray[0] * intputIntArray[1]; squareSize intputIntArray[0] * intputIntArray[1] intputIntArray[0] intputIntArray 0 intputIntArray[1] intputIntArray 1 int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2; squareLength (intputIntArray[0] + intputIntArray[1]) * 2 (intputIntArray[0] + intputIntArray[1]) intputIntArray[0] intputIntArray 0 intputIntArray[1] intputIntArray 1 2 System.out.println(squareSize + " " + squareLength ) System.out.println System.out System System.out squareSize + " " + squareLength squareSize + " " + squareLength squareSize " " squareLength String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input= sc.nextLine();
        String[] inputStrArray = input.split(" ");
        int[] intputIntArray = new int[inputStrArray.length];
 
        for (int index = 0; index < intputIntArray.length; index++) {
            intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
        }
        // 面積
        int squareSize = intputIntArray[0] * intputIntArray[1];
        // 周
        int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2;
 
        System.out.println(squareSize + " " + squareLength );
 
    }
}
