import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
 * 提出用Mainクラス
 */
public class Main {
    public static void main(String args[] ) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[] ) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    }
} Main public static void main(String args[] ) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer[] result = new Integer[2]; result new Integer[2] 2 Integer[] N = new Integer[2]; N new Integer[2] 2 String[] input = new String[2]; input new String[2] 2 String readLine = br.readLine(); readLine br.readLine() br.readLine br input = readLine.split(" ") input readLine.split(" ") readLine.split readLine " " N[0] = Integer.parseInt(input[0]) N[0] N 0 Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 N[1] = Integer.parseInt(input[1]) N[1] N 1 Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 result[0] = N[0] * N[1] result[0] result 0 N[0] * N[1] N[0] N 0 N[1] N 1 result[1] = N[0] + N[0] + N[1] + N[1] result[1] result 1 N[0] + N[0] + N[1] + N[1] N[1] N[0] + N[0] + N[1] + N[1] N[0] N 0 N[0] N 0 N[1] N 1 N[1] N 1 System.out.println(result[0] +" " + result[1]) System.out.println System.out System System.out result[0] +" " + result[1] result[0] +" " + result[1] result[0] result 0 " " result[1] result 1 String args[] args public class Main {
    public static void main(String args[] ) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    }
} public class Main {
    public static void main(String args[] ) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
 * 提出用Mainクラス
 */
public class Main {
    public static void main(String args[] ) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer[] result = new Integer[2];
        Integer[] N = new Integer[2];
        String[] input = new String[2];
        String readLine = br.readLine();
        input = readLine.split(" ");
        N[0] = Integer.parseInt(input[0]);
        N[1] = Integer.parseInt(input[1]);
        result[0] = N[0] * N[1];
        result[1] = N[0] + N[0] + N[1] + N[1];
        System.out.println(result[0] +" " + result[1]);
    }
}