H = int(input())
W = int(input())
N = int(input())
counth = 0
countw = 0
while True:
    if (H-countw) < (W-counth) and countw < W:
        N -= (W-counth)
        countw += 1
    else:
        N -= (H-countw)
        counth += 1
    if N <= 0:
        break


print(counth+countw)
