#include<bits/stdc++.h> //#define int long long using namespace std; typedef long long ll; void precalc(){ } void solve(){ int n,m,k; cin>>n>>m>>k; cout<<k/m+1<<' '<<k/n+1; } signed main(){ // freopen("input.txt","r",stdin); // freopen("output.txt,"w",stdout); // ios::sync_with_stdio(0); // cin.tie(0); // cout.tie(0); precalc(); int T=1; // cin>>T; while(T--){ solve(); } return 0; }