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