/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
#include<stdio.h>
int memo;
int rec(int x, int y)
{
memo[x][y] = rec(x-1)(y) + rec(x)(y-1);
}
int main()
{
int n,m,k,x,y,x1,y1,x2,y2;
scanf("%d %d %d",&n,&m,&k);
x=1;
y=1;
x1=k/m+1;
y1=k%m;
x2=n;
y2=m;
return 0;
}