A,B,C=map(int,input().split()) L=6**8 if A<0:A,B,C=-A,-B,-C print(sum(A*n*n+B*n+C<0for n in range(-L,L)))