#include using namespace std; typedef long long int ll; typedef pair P; typedef vector VI; typedef vector VVI; #define REP(i,n) for(int i=0;i> n >> k; n--; string s; cin >> s; reverse(ALL(s)); REP(i,n){ if(s[i]=='o'){ if(n-i<=k){ cout << n-i << endl; return 0; } i+=k; } } cout << 0 << endl; return 0; }