#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j, k, a, l = 0;
  ;
  cin >> n;
  bool bol[n + 10];
  long long int de[n + 10];
  memset(bol, false, sizeof(bol));
  vector<long long int> v[n + 10];
  for (i = 2; i <= n; i++) {
    cin >> a;
    v[i].push_back(a);
    v[a].push_back(i);
  }
  for (i = 1; i <= n; i++) {
    cin >> de[i];
  }
  queue<long long int> q;
  q.push(1);
  bol[1] = true;
  while (!q.empty()) {
    a = q.front();
    q.pop();
    for (j = 0; j < v[a].size(); j++) {
      if (bol[v[a][j]] == false) {
        if (de[a] != de[v[a][j]]) l++;
        q.push(v[a][j]);
        bol[v[a][j]] = true;
      }
    }
  }
  cout << l + 1 << endl;
}
