Scanf.scanf "%s %s" (fun s t ->
    let n = String.length s in
    let rec loop i acc =
        if i = n then acc else
            let acc = if s.[i] = t.[i] then acc else acc + 1 in
            loop (i + 1) acc
    in
    loop 0 0 |> Printf.printf "%d\n"
)