#include //#include //using namespace atcoder; using namespace std; using ll = long long; int main(){ int n,k; cin >> n >> k; string s; cin >> s; int l =0 ; for(int i = 0;i