#include <bits/stdc++.h>
using namespace std;
char str[200024];
int main() {
  int n;
  scanf("%d", &n);
  scanf("%s", str);
  char tmp = 'z' + 1;
  int ans = n - 1;
  for (int i = 1; i < n; ++i) {
    if (str[i] < str[i - 1]) {
      ans = i - 1;
      break;
    }
  }
  for (int i = 0; i < n; ++i) {
    if (i == ans) continue;
    printf("%c", str[i]);
  }
  printf("\n");
  return 0;
}
