#include <bits/stdc++.h>
using namespace std;
char arr[1000005];
int main() {
  int n;
  string str;
  cin >> n >> str;
  int k = 0, flag = 0;
  for (int i = 0; i < n - 1; i++) {
    if (str[i] <= str[i + 1] || flag == 1) {
      arr[k++] = str[i];
    } else if (str[i] > str[i + 1])
      flag = 1;
  }
  int len = k;
  if (flag == 1) {
    arr[k] = str[n - 1];
    len = k + 1;
  }
  for (int i = 0; i < len; i++) cout << arr[i];
  return 0;
}
