#include #include using namespace std; using namespace atcoder; #define all(s) (s).begin(), (s).end() #define rall(s) (s).rbegin(), (s).rend() #define rep(i,l,r) for(int i=l;il;i--) using ll=long long; using mint=modint998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N,A,B;cin>>N>>A>>B; int ans=0; rep(n,1,N+1){ if(n%A>n%B)ans++; } cout<