import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val s = sc.next()
  val t = sc.next()

  val res = s
    .zip(t)
    .count {
      case (ss, tt) =>
        ss != tt
    }

  println(res)
}
