
open System

let a = stdin.ReadLine()
let b = stdin.ReadLine()
let calc =
    let mutable x = 0
    for i in 0..(a.Length-1) do
        if a.[i] = b.[i] then
            x <- x + 0
        else
            x <- x + 1
    x
calc |> printf "%d"
