#include <bits/stdc++.h>
using namespace std;
long long const M = 2e5 + 10, M2 = 1e5 + 10, mod = 998244353, inf = 1e9 + 10;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  string x;
  cin >> x;
  long long ind = -1;
  for (long long i = 0; i < (long long)x.size() - 1; i++) {
    if (x[i] > x[i + 1]) {
      ind = i;
      break;
    }
  }
  if (ind == -1) ind = (long long)x.size() - 1;
  for (long long i = 0; i < x.size(); i++) {
    if (ind != i) cout << x[i];
  }
}
