import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main {
    public static void main(String[] args) {
        String line = readLine(System.in);
        StringTokenizer token = new StringTokenizer(line, " ");
        int v = Integer.parseInt(token.nextToken());
        int h = Integer.parseInt(token.nextToken());
        System.out.println((v * h) + " " + (v * 2 + h * 2));
    }

    private static String readLine(InputStream in) {
        String line = null;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }

        return line;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util class Main {
    public static void main(String[] args) {
        String line = readLine(System.in);
        StringTokenizer token = new StringTokenizer(line, " ");
        int v = Integer.parseInt(token.nextToken());
        int h = Integer.parseInt(token.nextToken());
        System.out.println((v * h) + " " + (v * 2 + h * 2));
    }

    private static String readLine(InputStream in) {
        String line = null;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }

        return line;
    }
} Main public static void main(String[] args) {
        String line = readLine(System.in);
        StringTokenizer token = new StringTokenizer(line, " ");
        int v = Integer.parseInt(token.nextToken());
        int h = Integer.parseInt(token.nextToken());
        System.out.println((v * h) + " " + (v * 2 + h * 2));
    } main {
        String line = readLine(System.in);
        StringTokenizer token = new StringTokenizer(line, " ");
        int v = Integer.parseInt(token.nextToken());
        int h = Integer.parseInt(token.nextToken());
        System.out.println((v * h) + " " + (v * 2 + h * 2));
    } String line = readLine(System.in); line readLine(System.in) readLine System.in System System.in StringTokenizer token = new StringTokenizer(line, " "); token new StringTokenizer(line, " ") int v = Integer.parseInt(token.nextToken()); v Integer.parseInt(token.nextToken()) Integer.parseInt Integer token.nextToken() token.nextToken token int h = Integer.parseInt(token.nextToken()); h Integer.parseInt(token.nextToken()) Integer.parseInt Integer token.nextToken() token.nextToken token System.out.println((v * h) + " " + (v * 2 + h * 2)) System.out.println System.out System System.out (v * h) + " " + (v * 2 + h * 2) (v * h) + " " + (v * 2 + h * 2) (v * h) v h " " (v * 2 + h * 2) v * 2 v 2 h * 2 h 2 String[] args args private static String readLine(InputStream in) {
        String line = null;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }

        return line;
    } readLine {
        String line = null;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }

        return line;
    } String line = null; line null BufferedReader reader = null; reader null try {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        } IOException e {
            throw new RuntimeException(e);
        } throw new RuntimeException(e); new RuntimeException(e) {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        } if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            } reader != null reader null {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            } try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } IOException e {
                    throw new RuntimeException(e);
                } throw new RuntimeException(e); new RuntimeException(e) {
                    reader.close();
                } reader.close() reader.close reader {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } reader = new BufferedReader(new InputStreamReader(in)) reader new BufferedReader(new InputStreamReader(in)) line = reader.readLine() line reader.readLine() reader.readLine reader return line; line InputStream in in
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main {
    public static void main(String[] args) {
        String line = readLine(System.in);
        StringTokenizer token = new StringTokenizer(line, " ");
        int v = Integer.parseInt(token.nextToken());
        int h = Integer.parseInt(token.nextToken());
        System.out.println((v * h) + " " + (v * 2 + h * 2));
    }

    private static String readLine(InputStream in) {
        String line = null;
        BufferedReader reader = null;

        try {
            reader = new BufferedReader(new InputStreamReader(in));
            line = reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }

        return line;
    }
}