#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N; cin>>A>>B>>C; ll AB=A*B/__gcd(A,B); ll BC=B*C/__gcd(B,C); ll CA=C*A/__gcd(C,A); ll ABC=AB*C/__gcd(AB,C); ll ret=N/ABC-N/AB-N/BC-N/CA+N/A+N/B+N/C; cout<