#include<bits/stdc++.h>
using namespace std;
long long x,y, n,m,b;
//p2 d2 fjj half 50% 任 
int main()
{
	
	cin>>n;
	cin>>m;
	cin>>b;
	if(b%m==0)
	{
		x=b/m;	
	}
	else
	{
		x=b/m+1;
	}
	int i=1;
	while(1)
	{
		if(i*n<b&&(i+1)*n>=b)
		{
			y=i+1;
			break;
		}
		++i;
	}
	cout<<x<<" "<<y<<endl;
	return 0;
}