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

public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

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


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        }
    }
} Main public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        }
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] str2 = str.split(" "); str2 str.split(" ") str.split str " " int[] n = new int[str2.length]; n new int[str2.length] str2.length str2 str2.length for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        } int i = 0; int i = 0; i 0 i < str2.length i str2.length str2 str2.length i++ i++ i {
            n[i] = Integer.parseInt(str2[i]);
        } {
            n[i] = Integer.parseInt(str2[i]);
        } n[i] = Integer.parseInt(str2[i]) n[i] n i Integer.parseInt(str2[i]) Integer.parseInt Integer str2[i] str2 i if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        } n.length == 2 n.length n n.length 2 {
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        } System.out.print(n[0] * n[1] + " ") System.out.print System.out System System.out n[0] * n[1] + " " n[0] * n[1] n[0] n 0 n[1] n 1 " " System.out.println((n[0] + n[1]) * 2) System.out.println System.out System System.out (n[0] + n[1]) * 2 (n[0] + n[1]) n[0] n 0 n[1] n 1 2 String[] args args public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        }
    }
} public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

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

public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = str.split(" ");
        int[] n = new int[str2.length];
        for (int i = 0; i < str2.length; i++) {
            n[i] = Integer.parseInt(str2[i]);
        }
        if(n.length == 2){
            System.out.print(n[0] * n[1] + " ");
            System.out.println((n[0] + n[1]) * 2);

        }
    }
}