#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using str = string;
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using pd = pair<ld, ld>;
using vi = vector<int>;
using vb = vector<bool>;
using vl = vector<ll>;
using vd = vector<ld>;
using vs = vector<str>;
using vpi = vector<pi>;
using vpl = vector<pl>;
using vpd = vector<pd>;
const int MIN = 2e5 + 20;
const int MAX = 1e9 + 20;
str s;
ll n, i, l = -1;
int main() {
  cin >> n >> s;
  for (i = (0); i <= (n - 2); i++)
    if (s[i] > s[i + 1]) {
      l = i;
      break;
    }
  if (l == -1) l = n - 1;
  for (i = (0); i <= (n - 1); i++)
    if (i != l) cout << s[i];
}
