c = 0
s = input().split()
n = int(s[0])
x = int(s[1])
y = int(s[2])
for i in range(1, n // x + 1):
j = (n - i * x) // y
if x * i + y * j == n and i >= 10 and j >= 10:
c += 1
print(c)
/**************************************************************
Problem: 1793
User: admin
Language: Python
Result: Accepted
Time:199 ms
Memory:34480 kb
****************************************************************/