inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
S = inp.shift()
T = inp.shift()
c = 0
for (i=0; i<S.length; i++) {
    if (S[i] !== T[i]) {
        c++
    }
}
console.log(c)