#define _GLIBCXX_DEBUG #include using namespace std; int main(){ long long N,a,b,c; cin>>N>>a>>b>>c; long long ans=N/a+N/b+N/c-N/lcm(a,b)-N/lcm(a,c)-N/lcm(b,c)+N/lcm(lcm(a,b),c); cout<