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

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		} IOException e {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		} System.err.println("The input is missing. " + e.getMessage()) System.err.println System.err System System.err "The input is missing. " + e.getMessage() "The input is missing. " e.getMessage() e.getMessage e return; {
			line = br.readLine();
		} line = br.readLine() line br.readLine() br.readLine br int x x y; y try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        } Throwable e {
			System.err.println("The input is in an illegal form. " + line);
			return;
        } System.err.println("The input is in an illegal form. " + line) System.err.println System.err System System.err "The input is in an illegal form. " + line "The input is in an illegal form. " line return; {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } String[] fields = line.split(" "); fields line.split(" ") line.split line " " x = Integer.parseInt(fields[0]) x Integer.parseInt(fields[0]) Integer.parseInt Integer fields[0] fields 0 y = Integer.parseInt(fields[1]) y Integer.parseInt(fields[1]) Integer.parseInt Integer fields[1] fields 1 StringBuilder b = new StringBuilder(); b new StringBuilder() b.append(x*y) b.append b x*y x y b.append(' ') b.append b ' ' b.append(2*(x+y)) b.append b 2*(x+y) 2 (x+y) x y System.out.println(b.toString()) System.out.println System.out System System.out b.toString() b.toString b String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int x, y;
        try {
        	String[] fields = line.split(" ");
        	x = Integer.parseInt(fields[0]);
        	y = Integer.parseInt(fields[1]);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(x*y);
        b.append(' ');
        b.append(2*(x+y));
        System.out.println(b.toString());
    }
}