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

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    }
} 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 {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    } main {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] lines = line.split(" ", 0); lines line.split(" ", 0) line.split line " " 0 int n = Integer.parseInt(lines[0]); n Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int m = Integer.parseInt(lines[1]); m Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 System.out.println((n*m) + " " + (2*n+2*m)) System.out.println System.out System System.out (n*m) + " " + (2*n+2*m) (n*m) + " " + (2*n+2*m) (n*m) n m " " (2*n+2*m) 2*n 2 n 2*m 2 m String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] lines = line.split(" ", 0);
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        System.out.println((n*m) + " " + (2*n+2*m));
    }
}