a,b,c = map(int,input().split()) if a < 0: a,b,c = -a,-b,-c cnt = 0 for i in range(-1000000,1000001): if a*i*i + b*i + c < 0: cnt += 1 print(cnt)