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