module kkk
  sub main()
    
    dim h as integer = Integer.Parse(Console.ReadLine)
    dim w as integer = Integer.Parse(Console.ReadLine)
    dim n as integer = Integer.Parse(Console.ReadLine)
    
    dim i as integer
    
    dim a as integer
    
    i = 0
    do
      i = i + 1
      if h >= w then
        a = a + h
      else
        a = a + w
      end if
      if a >= n then exit do
        loop
        
        console.writeline(i)
        
      end sub
    end module
    