import java.io.*;
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = r.readLine();
        if(!is.contains(" "))
        	return;
        String[] sp = is.split(" ");
        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int area = a*b;
        int round = a*2+b*2;
        System.out.println(area + " " + round);
    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = r.readLine();
        if(!is.contains(" "))
        	return;
        String[] sp = is.split(" ");
        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int area = a*b;
        int round = a*2+b*2;
        System.out.println(area + " " + round);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = r.readLine();
        if(!is.contains(" "))
        	return;
        String[] sp = is.split(" ");
        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int area = a*b;
        int round = a*2+b*2;
        System.out.println(area + " " + round);
    } main {
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = r.readLine();
        if(!is.contains(" "))
        	return;
        String[] sp = is.split(" ");
        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int area = a*b;
        int round = a*2+b*2;
        System.out.println(area + " " + round);
    } BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) String is = r.readLine(); is r.readLine() r.readLine r if(!is.contains(" "))
        	return; !is.contains(" ") is.contains(" ") is.contains is " " return; String[] sp = is.split(" "); sp is.split(" ") is.split is " " int a = Integer.parseInt(sp[0]); a Integer.parseInt(sp[0]) Integer.parseInt Integer sp[0] sp 0 int b = Integer.parseInt(sp[1]); b Integer.parseInt(sp[1]) Integer.parseInt Integer sp[1] sp 1 int area = a*b; area a*b a b int round = a*2+b*2; round a*2+b*2 a*2 a 2 b*2 b 2 System.out.println(area + " " + round) System.out.println System.out System System.out area + " " + round area + " " + round area " " round String[] args args
import java.io.*;
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = r.readLine();
        if(!is.contains(" "))
        	return;
        String[] sp = is.split(" ");
        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int area = a*b;
        int round = a*2+b*2;
        System.out.println(area + " " + round);
    }
}