func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, p[11111], c[11111];   vector<pair<int, int> > ve;   int main() {     int a;     cin >> n;     for (int i = 2; i <= n; i++) {       cin >> a;       c[i] = a;     }     int s = 1;     cin >> p[1];     for (int i = 2; i <= n; i++) {       cin >> p[i];       if (p[i] != p[c[i]]) {         s++;       }     }     cout << s;     return 0;   }   