func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     long n, m;     cin >> n >> m;     if (m % 2 == 1) {       bool f = true;       long ptr = (m + 1) / 2;       long p1 = ptr - 1, p2 = ptr;       for (long i = 1; i <= n; i++) {         if (f && p2 <= m) {           cout << p2 <<   n ;           p2++;           f = false;         } else if (p1 >= 1) {           cout << p1 <<   n ;           p1--;           f = true;         } else {           i--;           f = !f;           p1 = ptr - 1;           p2 = ptr;         }       }     } else {       bool f = true;       long ptr = (m + 1) / 2;       if (n >= 2)         cout << ptr <<   n  << ptr + 1 <<   n ;       else         cout << ptr;       long p1 = ptr - 1;       long p2 = ptr + 2;       for (long i = 3; i <= n; i++) {         if (f && p1 >= 1) {           cout << p1 <<   n ;           p1--;           f = false;         } else if (p2 <= m) {           cout << p2 <<   n ;           p2++;           f = true;         } else {           i++;           if (i < n)             cout << ptr <<   n  << ptr + 1 <<   n ;           else             cout << ptr <<   n ;           p1 = ptr - 1;           p2 = ptr + 2;         }       }     }     return 0;   }   