
exception Error of string
let err s = raise (Error s)

let _ =
    let x, y = Scanf.scanf "%d %d" (fun x y -> x, y) in
    (string_of_int (x * y)) ^ " " ^ (string_of_int (2*(x+y))) |> print_endline
    
