import re;N,S=open(0);l=[m.span()[1] for m in re.finditer('xo',S)];print(len(l),"\n",*l)