#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, p = 0;
  cin >> n;
  char s[n + 1];
  cin >> s;
  for (i = 1; i < n; i++) {
    if (s[i] >= s[i - 1] || p != 0)
      cout << s[i - 1];
    else
      p++;
  }
  if (p != 0) cout << s[n - 1] << endl;
  return 0;
}
