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