n = int(input()) s = input() check = True if "o" not in s: print(0) else: ls = [] for i in range(n): if s[i] == "o" and check: ls.append(i+1) check = "x" == s[i] print(*ls)