object Main {
  def main(args : Array[String]): Unit = {
    val scanner = new java.util.Scanner(System.in)
    val str1 = scanner.nextLine()
    val str2 = scanner.nextLine()
    println(str1.zip(str2).filter{case (a,b) => a != b}.length)
  }
}
