#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N >> A >> B; cout << N-N/A-N/B+N/f(A,B) << endl; return 0; }