#include <bits/stdc++.h>
using namespace std;
const double pi = 2 * acos(0.0);
void solve() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  long long ans = n - 1;
  for (long long i = 0; i <= n - 2; i++) {
    if (s[i] > s[i + 1]) {
      ans = i;
      break;
    }
  }
  s.erase(ans, 1);
  cout << s << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
