import java.io.*;

public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    }
} Main public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        } catch (IOException e) {
            System.out.println(e);
        } IOException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e catch (NumberFormatException e) {
            System.out.println("error");
        } NumberFormatException e {
            System.out.println("error");
        } System.out.println("error") System.out.println System.out System System.out "error" {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } String line = reader.readLine(); line reader.readLine() reader.readLine reader String[] length = line.split(" ", -1); length line.split(" ", -1) line.split line " " -1 1 int a = Integer.parseInt(length[0]); a Integer.parseInt(length[0]) Integer.parseInt Integer length[0] length 0 int b = Integer.parseInt(length[1]); b Integer.parseInt(length[1]) Integer.parseInt Integer length[1] length 1 int x = a * b; x a * b a b int y = (a + b) * 2; y (a + b) * 2 (a + b) a b 2 System.out.println(x + " " + y) System.out.println System.out System System.out x + " " + y x + " " + y x " " y String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            String[] length = line.split(" ", -1);
            int a = Integer.parseInt(length[0]);
            int b = Integer.parseInt(length[1]);
            int x = a * b;
            int y = (a + b) * 2;
            System.out.println(x + " " + y);
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("error");
        }
    }
}