func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     int n, k, h = 0;     cin >> n >> k;     vector<int> v;     for (int i = 0; i < n; i++) v.push_back(i);     for (int ki = 1; ki <= k; ki++) {       int x;       cin >> x;       x = x - (x / (n)) * (n);       int d = (h + x) % n;       h = d;       if (d == n - 1) h = 0;       n--;       cout << v[d] + 1 <<    ;       vector<int> tmp;       for (int i = 0; i < v.size(); i++)         if (i != d) tmp.push_back(v[i]);       v = tmp;     }     return 0;   }   