#include <bits/stdc++.h>
#pragma warning(disable : 4996)
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("-ffloat-store")
using namespace std;
struct A {
  void solve(std::istream& cin, std::ostream& cout) {
    int n;
    cin >> n;
    string s;
    cin >> s;
    int splice = n - 1;
    for (int i = (0); i < (n); ++i) {
      if (s[i] > s[i + 1]) {
        splice = i;
        break;
      }
    }
    s.erase(splice, 1);
    cout << s << "\n";
  }
};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  A solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
