#include using namespace std; using ll=long long; using vin=vector; using vll=vector; using vvin=vector>; using vvll=vector>; using vstr=vector; using vvstr=vector>; using vch=vector; using vvch=vector>; using vbo=vector; using vvbo=vector>; using vpii=vector>; using pqsin=priority_queue,greater>; #define mp make_pair #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep2(i,s,n) for(int i=(s);i<(int)(n);i++) #define all(v) v.begin(),v.end() #define decp(n) cout<>n; vin a(n),b(n); rep(i,n)cin>>a[i]; rep(i,n)cin>>b[i]; int ans=0,res=0; rep(i,n){ if(a[i]!=b[i]){ res++; } else if(res>0){ ans++; res=0; } } if(res>0)ans++; cout<