#include using namespace std; typedef long long LL; int main(int argc, char* argv[]) { LL N,a,b,c; cin>>N; cin>>a>>b>>c; if (c%b==0 || c%a==0){ c=0; } if (b%a==0){ b=0; } LL a1=0,b1=0,c1=0,d1=0,e1=0,f1=0,g1=0; a1=N/a; if (b>0){ b1=N/b; } if (c>0){ c1=N/c; } if (b>0){ d1=N/(a*b); } if (c>0){ LL x=a*c; f1=N/(a*c); } if (b>0 &&c>0){ LL x=b*c; e1=N/(b*c); g1=N/(a*b*c); } /* cout<