object Main extends App{
    val s = scala.io.StdIn.readLine()
    val t = scala.io.StdIn.readLine()
    val len = s.length
    var count = 0
    for(i <- 0 until len; if s(i) != t(i)){
        count = count + 1
    }
    println(count)
}