func_code_string: #include <bits/stdc++.h>   #pragma comment(linker,  /stack:640000000 )   using namespace std;   const double EPS = 1e-9;   const int INF = 0x7f7f7f7f;   const double PI = acos(-1.0);   template <class T>   inline T gcd(T a, T b) {     return (b) == 0 ? (a) : gcd((b), ((a) % (b)));   }   template <class T>   inline T lcm(T a, T b) {     return ((a) / gcd((a), (b)) * (b));   }   template <typename T>   string NumberToString(T Number) {     ostringstream second;     second << Number;     return second.str();   }   struct debugger {     template <typename T>     debugger& operator,(const T& v) {       cerr << v <<    ;       return *this;     }   } dbg;   int t, n, m;   string s;   int main() {     while (~scanf( %d%d , &n, &m)) {       long long k;       scanf( %lld , &k);       if (k < n) {         printf( %lld 1 n , k + 1);         continue;       }       k -= (n - 1);       int row = k / (m - 1);       if (k % (m - 1) == 0) row--;       int col = k % (m - 1);       if (k % (m - 1) == 0) col = m - 1;       int odd = row % 2;       row = n - row;       if (odd)         col = m - col + 1;       else         col = col + 1;       printf( %d %d n , row, col);     }     return 0;   }   