N = int(input()) S = input() lst = [] pos = -1 while True: pos = S.find('xo', pos+1) if pos == -1: break lst.append(pos+2) print(len(lst)) print(' '.join([str(i) for i in lst]))