let s = read_line ()
let t = read_line ()
let len = String.length s

let count = ref 0

let main () =
    for i = 0 to len - 1 do
        if s.[i] <> t.[i] then incr count
    done;
    Printf.printf "%d\n" !count

let () = main ()
