open System
let charArray = Array.zip (Console.ReadLine().ToCharArray()) (Console.ReadLine().ToCharArray())
let filteredList =  charArray |> Array.filter(fun (a,b) -> a <> b)
printfn "%d" filteredList.Length