#include <bits/stdc++.h> using namespace std; int main() { int a, b, t; cin >> a >> b >> t; cout << t / b + 1 << " " << t % b + 1; return 0; }