n = int(input()) s = input() che = False ans =[] for i in range(n): if s[i] == "x": che = False elif s[i] == 'o' and not che: ans.append(i + 1) che = True elif s[i] == 'o' and che: continue if ans: print(len(ans)) print(*ans) else: print(0)