#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> N >> S; string T="x"; T+=S; vector v; for(i=1;i<=N;i++){ if(T[i-1]=='x' && T[i]=='o') v.push_back(i); } cout << (int)v.size() << endl; REP(i,v.size()) cout << v[i] << ' '; cout << endl; return 0; }