! 2020.1.18
!
      program answer
      implicit none
      integer :: H,W,N
      integer :: ans
!
      read(*,*) H
      read(*,*) W
      read(*,*) N
!
      ans = 0
      do
        if(N <= 0) exit
        if(H > W) N = N-H
        if(H < W) N = N-W
        ans = ans+1
      end do
!
      write(*,*) ans
!
      end program answer