#include<cstdio>
#include<iostream>
#include<cstring>
#include<string>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<vector>
using namespace std;
typedef long long ll;

int h,w,n;

template<typename int_t>
void readx(int_t &x)
{
	x=0; int_t k=1; char ch=0;
	while (ch<'0' || ch>'9') { ch=getchar(); if (ch=='-') k=-1; }
	while (ch>='0' && ch<='9') { x=x*10+ch-'0'; ch=getchar(); }
	x*=k;
}



int main()
{
	readx(h); readx(w); readx(n);
	if (h<w) swap(h,w);
	printf("%d\n", (n/h) + (bool)(n%h) );
	return 0;
}
#include<stdio.h>

int main(){
	
	
	int h, w, n, ans;
	
	scanf("%d", &h);
	scanf("%d", &w);
	scanf("%d", &n);
	
	if(w>=h){
		if(n%w == 0){
			ans = n/w;
		}else if(n%w != 0){
			ans = n/w+1;
		}
	
	}else if(w<=h){
		if(n%h == 0){
			ans = n/h;
		}else if(n%h != 0){
			ans = n/h+1;
		}
	}
	printf("%d", ans);
}