let () =
    let main () =
        let h = int_of_string (read_line ()) in
        let w = int_of_string (read_line ()) in
        let n = int_of_string (read_line ()) in
        let v = max h w in
        let r = (n + (v - 1)) / v in
        Printf.printf "%d\n" r

    in
    main ()