fun main (args:Array<String>){
    val s = readLine()!!
    val t = readLine()!!
    var count = 0
    var len = s.length - 1
    for (i in 0..len){
        if(s[i] != t[i]) count++
    }
    print(count)


}