func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     bool vi[1002];     memset(vi, 0, sizeof vi);     int a = 0, i = 0;     while (i < n) {       a = (a + i % n) % n;       if (vi[a]) {         cout <<  NO  << endl;         return 0;       };       vi[a] = 1;       i++;     }     cout <<  YES  << endl;   }   