#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,X,A,B,s=0;
	cin>>X>>A>>B;
	for(i=1;i<=X/A;i++){
		for(int j=1;j<=X/B;j++){
			if(X-i*A==j*B)
			s++;
		}
	}
	cout<<s;
	return 0;
}
/**************************************************************
	Problem: 1016
	User: houshanglin
	Language: C++
	Result: Accepted
	Time:19 ms
	Memory:2072 kb
****************************************************************/