#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int c[10010];
int p[10010];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i < n; i++) {
    scanf("%d", &p[i]);
    p[i]--;
  }
  for (int i = 0; i < n; i++) scanf("%d", &c[i]);
  int ans = 1;
  for (int i = 1; i < n; i++) {
    if (c[i] != c[p[i]]) ans++;
  }
  cout << ans << endl;
  return 0;
}
