a = int(input()) b = int(input()) c = int(input()) d = b**2 - 4 * a * c if d > 0: print(2) elif d < 0: print(0) else: print(1)