import scala.io.StdIn._
object Main {
  def main(args:Array[String]) {
    val S = readLine()
    val T = readLine()
    var count = 0

    for(i <- 0 until S.size) {
      if(S(i) != T(i)) count += 1
    }
    println(count)
  }
}
