function main(input){
  let count = 0;
  const [a, b] = input.split('\n');
  Array.from(a).forEach((e,i) => {
    if(e !== b[i]) count++;
  });
  console.log(count);

}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
