text: #include <bits/stdc++.h>
  
  using namespace std;
  
  int divisible(int n,int a,int b){
      int c1 = n/a;
      int c2 = n/b;
      int c3 = n/(a*b);//this logic is not good enough, if you know improved logic please raise a PR
      return c1+c2-c3;
  }
  
  int main(){
  
      int n,a,b;
      cin>>n>>a>>b;
  
      cout<<divisible(n,a,b)<<endl;
  
      return 0;
  }