#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e4 + 100;
int n, color[maxn], c[maxn], ans, par[maxn];
bool mark[maxn];
vector<int> g[maxn];
void input() {
  cin >> n;
  for (int i = 2; i <= n; i++) {
    int p;
    cin >> p;
    par[p] = i;
    g[p].push_back(i);
  }
  for (int i = 1; i <= n; i++) cin >> c[i];
}
void dfs(int v) {
  if (color[v] != c[v]) {
    color[v] = c[v];
    ans++;
  }
  for (int i = 0; i < g[v].size(); i++) {
    int u = g[v][i];
    color[u] = color[v];
    dfs(u);
  }
}
int32_t main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  input();
  dfs(1);
  cout << ans << endl;
}
