func_code_string: #include <bits/stdc++.h>   using namespace std;   const long long inf = (long long)1e18;   const long long mod = (long long)1e9 + 7;   const double eps = (double)1e-9;   const double pi = acos(-1.0);   const int dx[] = {0, 0, 1, 0, -1};   const int dy[] = {0, 1, 0, -1, 0};   const int N = 300500;   int main() {     cin.tie(NULL);     cout.tie(NULL);     ios_base::sync_with_stdio(false);     vector<int> v;     v.push_back(1);     v.push_back(2);     while (v.size() < (int)1e6) {       int x = v.back();       if (x % 2 == 0) {         v.push_back(x + x);         v.push_back(x + x + 1);       } else {         v.push_back(x + x - 1);         v.push_back(x + x);       }     }     int n;     cin >> n;     for (int i : v)       if (i == n) {         cout << 1;         return 0;       }     cout << 0;     return 0;   }   