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