#include <bits/stdc++.h>
using namespace std;
using std::string;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int f = 0;
  for (int i = 0; i < s.size() - 1; i++) {
    if (s[i + 1] < s[i]) {
      for (int j = i + 1; j < s.size(); j++) s[j - 1] = s[j];
      f = 1;
      break;
    }
  }
  s.pop_back();
  cout << s;
}
