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