fun main(args: Array<String>) {
    val s = readLine()!!
    val t = readLine()!!

    var distance = 0
    for (i in s.indices) {
        if (s[i] != t[i]) {
            distance++
        }
    }
    println(distance)
}