func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, m, d = 1;   int main() {     ios::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     cin >> n >> m;     while (n > d) {       for (int i = 1; i < (m + 1); i++) {         cout << d <<     << i <<   n ;         cout << n <<     << m + 1 - i <<   n ;       }       n--;       d++;     }     if (n == d) {       for (int i = 0; i < (m / 2); i++) {         cout << d <<     << 1 + i <<   n ;         cout << d <<     << m - i <<   n ;       }       if (m & 1) cout << d <<     << (m + 1) / 2 <<   n ;     }   }   