import Foundation
let S = readLine()!
let T = readLine()!

var count = 0
for i in 0..<S.count {
    if S[String.Index(encodedOffset: i)] != T[String.Index(encodedOffset: i)] {
        count += 1
    }
}

print(count)
