#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxn = 2e5 + 10;
char st[maxn];
int main() {
  int n;
  scanf("%d", &n);
  scanf("%s", st + 1);
  int pos = 0;
  for (int i = 1; i < n; ++i) {
    if (st[i] > st[i + 1]) {
      pos = i;
      break;
    }
  }
  if (pos == 0) --n;
  for (int i = 1; i <= n; ++i) {
    if (pos == i) continue;
    printf("%c", st[i]);
  }
  return 0;
}
