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