#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int len = s.size();
  int k = len - 1;
  for (int i = 0; i < len - 1; i++) {
    if (s[i] - 'a' > s[i + 1] - 'a') {
      k = i;
      break;
    }
  }
  s.erase(k, 1);
  cout << s << endl;
  return 0;
}
