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