program ABC172B
    implicit none
    integer(8)::i,ans=0
    character(200000)::S,T
    read*,S,T
    do i=1,len_trim(S)
        if(S(i:i)/=T(i:i))ans=ans+1
    end do
    print'(i0)',ans
end program ABC172B