#include using namespace std; #define int long long signed main(){ int N,M; cin>>N>>M; vector A(N,0); for(int i=1;i<=N;i++){ int now = i; while(now <= N){ A[now-1] = 1-A[now-1]; now += i; } } vector S(N,0); for(int i=0;i>a; S[a-1] = 1; } int ans = 0; for(int i=1;i<=N;i++){ if(A[i-1] != S[i-1]){ ans++; int now = i; while(now <= N){ A[now-1] = 1-A[now-1]; now += i; } } } cout<