x,y,z = input().split() x,y,z = int(x),int(y),int(z) #x是苹果数,y小时吃一个苹果,z给定你的总时间 a =z//y if z%y > 0: a = a+1 if a > x: print(0) else: print( x - a )