#include #include #include using namespace std; int main(){ int N,S; scanf("%d%d",&N,&S); int P[N]; for(int i=0;i que; for(int i=0;i=abs(P[i]-P[j])){ check=false; break; } } if(check){ que.push(i+1); } } printf("%d\n",(int)(que.size())); while(!que.empty()){ printf("%d ",que.front()); que.pop(); } printf("\n"); }