#include <bits/stdc++.h>
using namespace std;
char a[200005];
int main() {
  int n;
  scanf("%d%s", &n, a + 1);
  int ans = -1;
  for (int i = 1; i < n; i++) {
    if (a[i] > a[i + 1]) {
      ans = i;
      break;
    }
  }
  if (ans == -1) ans = n;
  for (int i = 1; i <= n; i++) {
    if (i != ans) {
      printf("%c", a[i]);
    }
  }
  printf("\n");
}
