#include int main(){ int N,A,B,count=0; scanf("%d %d %d",&N,&A,&B); for(int i=1;i<=N;i++){ if(i%A!=0&&i%B!=0){ count++; } } return 0; }