#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:500000000000")
void ending() { exit(0); }
vector<vector<int> > g;
vector<bool> used;
vector<int> col;
int kol = 0;
void dfs(int v, int color) {
  for (int i = 0; i < g[v].size(); i++) {
    int to = g[v][i];
    if (!used[to]) {
      used[to] = 1;
      if (col[to] != color) {
        kol++;
      }
      dfs(to, col[to]);
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n, x;
  cin >> n;
  col.resize(n);
  used.resize(n, 0);
  g.resize(n);
  for (int i = 1; i < n; i++) {
    cin >> x;
    x--;
    g[x].push_back(i);
    g[i].push_back(x);
  }
  for (int i = 0; i < n; i++) {
    cin >> col[i];
  }
  dfs(0, 0);
  cout << kol;
  ending();
  ;
}
