#[allow(unused_imports)]
use std::cmp::{Ordering};

#[allow(unused_imports)]
use std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, VecDeque};

#[allow(unused_imports)]
use std::io::{stdin, stdout, BufWriter, Write};

#[allow(unused_imports)]
use std::iter::FromIterator;

#[allow(unused_macros)]
macro_rules! min {
    ($x: expr) => ($x);
    ($x: expr, $($z: expr),+) => {{
        std::cmp::min($x, min!($($z),*))
    }}
}

#[allow(unused_macros)]
macro_rules! max {
    ($x: expr) => ($x);
    ($x: expr, $($z: expr),+) => {{
        std::cmp::max($x, max!($($z),*))
    }}
}

#[allow(unused_macros)]
macro_rules! get { 
    ([$t: ty]) => { 
        { 
            let mut line = String::new(); 
            stdin().read_line(&mut line).unwrap(); 
            line.split_whitespace().map(|t|t.parse::<$t>().unwrap()).collect::<Vec<_>>()
        }
    };
    ([$t: ty];$n: expr) => {
        (0..$n).map(|_|get!([$t])).collect::<Vec<_>>()
    };
    ($t: ty) => {
        {
            let mut line = String::new();
            stdin().read_line(&mut line).unwrap();
            line.trim().parse::<$t>().unwrap()
        }
    };
    ($($t: ty),*) => {
        { 
            let mut line = String::new();
            stdin().read_line(&mut line).unwrap();
            let mut iter = line.split_whitespace();
            ($(iter.next().unwrap().parse::<$t>().unwrap(),)*)
        }
    };
    ($t: ty; $n: expr) => {
        (0..$n).map(|_|get!($t)).collect::<Vec<_>>()
    };
    ($($t: ty),*; $n: expr) => {
        (0..$n).map(|_|get!($($t),*)).collect::<Vec<_>>()
    };
}

#[allow(unused_macros)]
macro_rules! debug {
    ($($a:expr),*) => {
        #[cfg(debug_assertions)]
        writeln!(&mut std::io::stderr(), concat!("[DEBUG] ", $(stringify!($a), "={:?} "),*), $($a),*).unwrap();
    }
}

const BIG_STACK_SIZE: bool = true;

#[allow(dead_code)]
fn main() {
    use std::thread;
    if BIG_STACK_SIZE {
        thread::Builder::new()
            .stack_size(32 * 1024 * 1024)
            .name("solve".into())
            .spawn(solve)
            .unwrap()
            .join()
            .unwrap();
    } else {
        solve();
    }
}

struct BinaryIndexedTree {
    tree: Vec<isize>,
}
impl BinaryIndexedTree {
#[allow(dead_code)]
    fn new(n: usize) -> Self {
        BinaryIndexedTree {
            tree: vec![0; n + 1],
        }
    }
#[allow(dead_code)]
    fn add(&mut self, a: usize, w: isize) {
        let mut x = a as isize + 1;
        while x < self.tree.len() as isize {
            self.tree[x as usize] += w;
            x += x & (-x);
        }
    }
#[allow(dead_code)]
    fn sum(&self, n: usize) -> isize {
        let mut x = n as isize;
        let mut ret = 0;
        while x > 0 {
            ret += self.tree[x as usize];
            x -= x & (-x);
        }
        ret
    }
#[allow(dead_code)]
    fn sum_with(&self, l: usize, r: usize) -> isize {
        if l == 0 {
            self.sum(r)
        } else {
            self.sum(r) - self.sum(l - 1)
        }
    }
}

fn solve() {
    let (n,k,c) = get!(usize, usize, usize);
    let s = get!(String).chars().collect::<Vec<_>>();

    if c == 0 {
        let mut count = 0;
        for i in 0..n {
            if s[i] == 'o' {
                count += 1;
            }
        }
        if count == k {
            for i in 0..n {
                if s[i] == 'o' {
                    println!("{}", i+1);
                }
            }
        }
        return;
    }


    let mut dp = vec![0usize;n+1];
    let mut rdp = vec![0usize;n+1];

    for i in 0..n {
        dp[i+1] = if s[i] == 'o' {
            if i < c {
                max!(dp[i],1)
            } else {
                max!(dp[i-c]+1,dp[i])
            }
        } else {
            dp[i]
        };

        rdp[n-i-1] = if s[n-i-1] == 'o' {
            if n-i+c > n {
                max!(rdp[n-i],1)
            } else {
                max!(rdp[n-i], rdp[n-i+c]+1)
            }
        } else {
            rdp[n-i]
        };
    }

    let mut bit = BinaryIndexedTree::new(n+1);


    for i in 0..c-1 {
        if rdp[i+1] < k {
            bit.add(0,1);
            bit.add(i+2,-1);
        }
    }

    for i in 0..n {
        if i+c>n {
            if dp[i] < k {
                bit.add(i+1,1);
            }
        } else if dp[i]+rdp[i+c] < k {
            bit.add(i+1, 1);
            bit.add(i+c+1, -1);
        }
    }

    for i in 0..n {
        if bit.sum(i+2) == c as isize {
            println!("{}", i+1);
        }
    }


}


Measured memory_bytes: 14716