program abc32
 implicit none
 integer::H,W,N,ans
 read(*,*)H
 read(*,*)W
 read(*,*)N
 if(H>W)then
  ans=(N-mod(N,H))/H
  if(mod(N,H)/=0)then
   ans=ans+1
  end if
 else
  ans=((N-mod(N,W))/W)
  if(mod(N,W)/=0)then
   ans=ans+1
  end if
 end if
 print'(i0)',ans
end program abc32