#include <bits/stdc++.h>
using namespace std;
int const N = int(1e4) + 7;
int const mod = int(1e9) + 7;
int p[N];
int c[N];
int main() {
  ios_base::sync_with_stdio(false);
  ifstream in("input.txt");
  int n;
  cin >> n;
  for (int i = 2; i <= n; ++i) {
    cin >> p[i];
  }
  for (int i = 1; i <= n; ++i) {
    cin >> c[i];
  }
  int cnt = 0;
  for (int i = 1; i <= n; ++i) {
    if (c[i] != c[p[i]]) {
      ++cnt;
    }
  }
  cout << cnt;
  return 0;
}
