func_code_string: #include <bits/stdc++.h>   using namespace std;   long long int power(long long int x, long long int y, long long int p) {     long long int res = 1;     x = x % p;     while (y > 0) {       if (y & 1) res = (res * x) % p;       y = y / 2;       x = (x * x) % p;     }     return res;   }   void solve() {     long long int n, m, l, h, i;     cin >> n >> m;     l = 0;     h = n * m - 1;     while (l < h) {       cout << l / m + 1 <<     << l % m + 1 <<   n ;       cout << h / m + 1 <<     << h % m + 1 <<   n ;       ++l, --h;     }     if (l == h) cout << l / m + 1 <<     << l % m + 1 <<   n ;   }   int main() {     long long int t = 1;     while (t--) {       solve();     }     return 0;   }   