#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cerr.tie(nullptr);
  string s;
  int n;
  cin >> n >> s;
  int ind = -1;
  for (int i = 1; i < n; ++i) {
    if (s[i] < s[i - 1]) {
      ind = i - 1;
      break;
    }
  }
  if (ind == -1) ind = n - 1;
  for (int i = 0; i < n; ++i) {
    if (i == ind) continue;
    cout << s[i];
  }
  cout << '\n';
}
