#include<bits/stdc++.h> using namespace std; int n,m,k,xn,xm; int main(){ cin>>n>>m>>k; xm=k/n; xn=k/xm; cout<<xn<<" "<<xm; return 0; }