#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  {
    long long int n, i, count;
    cin >> n;
    long long int p[n + 1], c[n + 1];
    for (i = 2; i <= n; i++) cin >> p[i];
    for (i = 1; i <= n; i++) cin >> c[i];
    count = 1;
    for (i = 2; i <= n; i++) {
      if (c[p[i]] != c[i]) count++;
    }
    cout << count;
  }
  cerr << " Execution : " << (1.0 * clock()) / CLOCKS_PER_SEC << "s \n";
  return 0;
}
