#include <bits/stdc++.h>
using namespace std;
int n;
string second, ans, cur;
bool ls = 1;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> second;
  ans = second;
  cur = "";
  for (int i = 0; i < n - 1; i++) {
    if (second[i] > second[i + 1] && ls) {
      ls = 0;
      continue;
    }
    cur += second[i];
  }
  if (!ls) cur += second[n - 1];
  ans = min(ans, cur);
  cout << ans << endl;
  cout.flush();
  return 0;
}
