#include <bits/stdc++.h>
using namespace std;
struct per {
  char letter;
  int index;
  bool operator<(const per& a) const {
    if (letter == a.letter) return index > a.index;
    return letter > a.letter;
  }
};
int main() {
  int n, k;
  cin >> n >> k;
  string s;
  cin >> s;
  if (k >= n) return 0;
  priority_queue<per> q;
  for (int y = 0; y < s.length(); y++) {
    per a;
    a.letter = s[y];
    a.index = y;
    q.push(a);
  }
  for (; k--;) {
    per z = q.top();
    q.pop();
    s[z.index] = '*';
  }
  for (int u = 0; u < s.length(); u++) {
    if (s[u] == '*') continue;
    cout << s[u];
  }
  cout << endl;
  return 0;
}
