n = int(input()) s = input() a = [] for i in range(n-1): if s[i] == 'x' and s[i+1] == 'o': a.append(i+2) print(len(a)) print(*a)