#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1024000000,1024000000")
const int MAXN = 100024;
const int MOD = 1e9 + 7;
const double eps = 1e-8;
using namespace std;
vector<int> g[MAXN];
int num = 0, color[MAXN];
void dfs(int v, int c, int pre) {
  int Size = g[v].size();
  if (color[v] != c) num++;
  for (int i = 0; i < Size; i++) {
    int to = g[v][i];
    if (to != pre) {
      dfs(to, color[v], v);
    }
  }
}
int main() {
  int n, m;
  scanf("%d", &n);
  for (int i = 2; i <= n; i++) {
    int p;
    scanf("%d", &p);
    g[i].push_back(p);
    g[p].push_back(i);
  }
  for (int i = 1; i <= n; i++) scanf("%d", &color[i]);
  dfs(1, 0, -1);
  printf("%d\n", num);
  return 0;
}
