#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res % p;
}
long long gcd(int a, int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
bool sortbysec(const pair<char, int> &a, const pair<char, int> &b) {
  return (a.second < b.second);
}
int main() {
  char c;
  int n, k, co = 0;
  vector<pair<char, int>> v;
  vector<pair<int, char>> v1;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> c;
    v.push_back(make_pair(c, i));
  }
  sort(v.begin(), v.end());
  for (int i = k; i < v.size(); i++) {
    v1.push_back(make_pair(v[i].second, v[i].first));
  }
  sort(v1.begin(), v1.end());
  for (int i = 0; i < v1.size(); i++) cout << v1[i].second;
}
