func_code_string: #include <bits/stdc++.h>   using namespace std;   using namespace std;   const int MAXN = 1005;   vector<int> child[200000];   int ceng[200000];   void dfs(int v, int ii) {     ceng[ii]++;     for (int i = 0; i < child[v].size(); i++) {       dfs(child[v][i], ii + 1);     }   }   int main() {     int n;     scanf( %d , &n);     int temp;     for (int i = 2; i <= n; i++) {       scanf( %d , &temp);       child[temp].push_back(i);     }     int ans = 0;     dfs(1, 1);     for (int i = 1; i <= n; i++) {       if (ceng[i] % (2) == 0) ceng[i] = 0;       if (ceng[i]) ceng[i] = 1;       ans += ceng[i];     }     cout << ans << endl;     return 0;   }   