#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = long double;
using str = string;
using pl = pair<ll, ll>;
using pd = pair<db, db>;
using vl = vector<ll>;
using vd = vector<db>;
using vs = vector<str>;
using vpl = vector<pl>;
using vpd = vector<pd>;
using vvl = vector<vl>;
const ll inf = (ll)1e18 + 1;
const ll mod = 1000000007;
const db PI = 3.141592653589793238;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  str s;
  cin >> s;
  int idx = n - 1;
  for (int i = 0; i < n - 1; i++) {
    if (s[i] > s[i + 1]) {
      idx = i;
      break;
    }
  }
  cout << s.substr(0, idx) + s.substr(idx + 1) << '\n';
  return 0;
}
