#include<bits/stdc++.h> using namespace std; int n,m,k,x,y; int main() { cin>>n>>m>>k; if(k%m!=0) x=k/m+1; else x=k/m; y=m*x-k; cout<<x<<" "<<y; return 0; }