#include #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair; const int INF = 1001001; int main(void) { int n; cin >> n; vector a(n), b(n); for(int i = 0; i < n; i++) cin >> a[i]; for(int i = 0; i < n; i++) cin >> b[i]; vector c(n); int ans = 0; for(int i = 0; i < n; i++) { c[i] = (a[i] + b[i])%2; } for(int i = 0; i < n; i++){ if(c[i] == 1) { for(int j = i; j < n; j++) { if(c[j] == 0 || j == n-1) { i = j; break; } } ans++; } } cout<