#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, k;
  cin >> n >> m >> k;
  if (k < n) {
    cout << k + 1 << " " << 1;
  } else if (m == 2) {
    int k1 = n;
    int k2 = m;
    int kk = n;
    while (kk != k) {
      kk++;
      k1--;
    }
    cout << k1 << " " << k2;
  } else {
    long long res = k;
    int count = 0;
    while ((res - 2 * (m - 1)) > n - 1) {
      res -= 2 * (m - 1);
      count += 2;
    }
    int k1, k2;
    if (res <= (n + m - 2)) {
      k1 = n;
      k2 = m;
      long long kk = n + m - 2;
      while (kk != res) {
        k2--;
        kk--;
      }
      k1 -= count;
    } else {
      k1 = n - 1;
      k2 = m;
      long long kk = n + m - 1;
      while (kk != res) {
        k2--;
        kk++;
      }
      k1 -= count;
    }
    cout << k1 << " " << k2;
  }
}
