#include <stdio.h>
int main(void) {
char s[101];
int n, k,count=0,igo=0;
scanf("%d %d %s",&n
,&k
,s
);
for(int i=0;i<n-k+1;i++){
count=0;
for(int p=0;p<k;p++){
if(s[p+i]=='O')count++;
}
if(count==k){
igo++;
for(int p=0;p<k;p++){
s[p+i]='X';
}
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgljaGFyIHNbMTAxXTsKCWludCBuLCBrLGNvdW50PTAsaWdvPTA7CglzY2FuZigiJWQgJWQgJXMiLCZuLCZrLHMpOwoJCglmb3IoaW50IGk9MDtpPG4taysxO2krKyl7CgkJCgkJY291bnQ9MDsKCQkKCQlmb3IoaW50IHA9MDtwPGs7cCsrKXsKCQkJaWYoc1twK2ldPT0nTycpY291bnQrKzsKCQl9CgkJaWYoY291bnQ9PWspewoJCQlpZ28rKzsKCQkJZm9yKGludCBwPTA7cDxrO3ArKyl7CgkJCQlzW3AraV09J1gnOwoJCQl9CgkJfQoJfQoJcHJpbnRmKCIlZCIsaWdvKTsKCXJldHVybiAwOwp9Cg==