#include <bits/stdc++.h>
using namespace std;
int n;
int loc = -1;
string tmp;
int main() {
  cin >> n >> tmp;
  for (int i = 0; i < n - 1; ++i) {
    if (tmp[i] > tmp[i + 1]) {
      loc = i;
      break;
    }
  }
  if (loc == -1) {
    cout << tmp.substr(0, n - 1) << endl;
  } else {
    cout << tmp.substr(0, loc) + tmp.substr(loc + 1, n - 1 - loc) << endl;
  }
  return 0;
}
