func_code_string: #include <bits/stdc++.h>   using namespace std;   int dep[100005], present[100005];   int main() {     int n, p;     scanf( %d , &n);     for (int i = 2; i <= n; ++i) {       scanf( %d , &p);       present[dep[i] = dep[p] + 1] ^= 1;     }     printf( %d n , accumulate(present, present + n + 1, 1));   }   