#include using namespace std; signed main(){ string a, b; cin >> a >> b; int ans = 0; for( int i = 0; i < a.size(); ++i ) ans += a[ i ] != b[ i ]; cout << ans << endl; return 0; }