#include<bits/stdc++.h>
using namespace std;
int main(){
    int i,n,x,y,t,c = 0;
    cin>>n>>x>>y;
    for(i = 10;i <= (n - y) / x;i++){
        t = n - i * x;
        if(t % y == 0 && t / y >= 10){
            c++;
        }
    }
    cout<<c;
}
/**************************************************************
	Problem: 1793
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:17 ms
	Memory:2072 kb
****************************************************************/