#include <bits/stdc++.h>
using namespace std;
int main() {
  long long num;
  string s;
  cin >> num >> s;
  long long invalid;
  for (long long i = 0; i < s.size(); ++i) {
    if (s[i] > s[i + 1]) {
      invalid = i;
      break;
    }
  }
  s.erase(s.begin() + invalid);
  cout << s << endl;
  return 0;
}
