//このコード内の一部、およびすべてを引用して提出する行為を全面的に許可します //#define _GLIBCXX_DEBUG //提出の際、上の行はコメントアウトすること /* 関数ライブラリ参考URL https://atcoder.jp/contests/iroha2019-day3/submissions/80042489 */ /* 初期コード参考URL https://atcoder.jp/contests/iroha2019-day3/submissions/80042515 */ #include using namespace std; using ll=long long; using ull=unsigned long long; #define rep(a,b) for(ll a=0;a=0;a--) const long double pai=3.14159265358979323; using Pair = pair; #define MOD 998244353 #define INF 1000000000000000000 #define MINF -1000000000000000000 using vll = vector; using vvll = vector; using vbool = vector; using vstring = vector; #include using namespace atcoder; using mint=modint998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,A,B; cin>>N>>A>>B; ll ans=0; for(ll i=1;i<=N;i++){ if((i%A)>(i%B)){ans++;} } cout<