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