n = int(input()) s = input() ans = [i+2 for i in range(n-1) if s[i:i+2] == 'xo'] print(len(ans)) print(*ans)