program ap                                                                                                                 
  implicit none
  integer :: ans, larg
  integer :: h, w , n

  read(*,*) h
  read(*,*) w
  read(*,*) n

  if(h.gt.w)then
     larg=h
  else
     larg=w
  endif

  ans=n/larg + 1
  print *, ans

end program ap