#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
int main() {
  int n;
  cin >> n;
  char a[n];
  int ind = 0;
  bool first = true;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n - 1; i++) {
    if (a[i] > a[i + 1] && first) {
      ind = i;
      first = false;
    }
  }
  if (first) {
    if (a[n - 1] > a[0]) ind = n - 1;
  }
  for (int i = 0; i < n; i++) {
    if (i != ind) {
      cout << a[i];
    }
  }
  return 0;
}
