#include <bits/stdc++.h>
using namespace std;
set<int> ist;
map<string, int> msi;
map<string, string> mss;
map<int, string> mis;
map<int, int> mii;
vector<int> v;
vector<pair<int, int> > vv;
int cc[] = {1, -1, 0, 0};
int rr[] = {0, 0, 1, -1};
int n;
void LIFT_OFF_FALCON_MA20_D1_D2() {
  int t;
  int n, k;
  cin >> n >> k;
  string sp;
  cin >> sp;
  string ah = sp;
  sort(ah.begin(), ah.end());
  vector<int> cnt(200);
  for (int i = 0; i < k; i++) {
    cnt[ah[i]]++;
  }
  for (int i = 0; i < n; i++) {
    if (cnt[sp[i]] > 0) {
      cnt[sp[i]]--;
    } else {
      cout << sp[i];
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  LIFT_OFF_FALCON_MA20_D1_D2();
  return 0;
}
