N = gets.to_i
S = gets.chars
times = []
S.each_cons(2).with_index do |(left, right), index|
  if left == "x" && right == "o"
    times << index + 2
  end
end
puts times.size
puts times.join(" ")