#include <bits/stdc++.h>
using namespace std;
char a[200001];
int n;
bool op;
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; ++i) {
    if (a[i] > a[i + 1] && !op) {
      op = 1;
      continue;
    }
    cout << a[i];
  }
}
