#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  string s;
  cin >> s;
  long c = int(s[s.size() - 1]);
  char d = s[s.size() - 1];
  long pos = s.size() - 1;
  for (unsigned long i = 0; i < s.size() - 1; i++) {
    if (int(s[i]) > int(s[i + 1])) {
      d = s[i];
      pos = i;
      break;
    }
  }
  s.erase(s.begin() + pos);
  cout << s << "\n";
}
