func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, m, b;     cin >> n >> m;     vector<int> ct(0);     if (m == 1) {       for (int j = 0; j < n; j++) cout << 1 << endl;       return 0;     }     if (m == 2) {       ct.push_back(1);       ct.push_back(2);       for (int i = 0; i < n; i++) cout << ct[i % 2] << endl;       return 0;     }     if (m % 2 != 0) {       ct.push_back((m + 1) / 2);       int l, r;       l = (m + 1) / 2;       r = (m + 1) / 2;       while (l != 1) {         l--;         ct.push_back(l);         r++;         ct.push_back(r);       }       for (int i = 0; i < n; i++) cout << ct[i % m] << endl;     } else if (m % 2 == 0) {       ct.push_back((m + 1) / 2);       int l, r;       l = (m + 1) / 2;       r = (m + 1) / 2;       while (l != 1) {         r++;         ct.push_back(r);         l--;         ct.push_back(l);       }       ct.push_back(m);       for (int i = 0; i < n; i++) cout << ct[i % m] << endl;     }     return 0;   }   