let () =
    let xy = Array.map int_of_string (Array.of_list (String.split_on_char ' ' (read_line ()))) in
    let x = Array.get xy 0;
    let y = Array.get xy 1;
    Printf.printf "%d %d\n" (x * y) ((x + y) * 2)
    