#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
string s, ans;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  cin >> s;
  int flag = 0;
  for (int i = 0; i < n - 1; ++i) {
    if (s[i] > s[i + 1]) {
      s.erase(s.begin() + i);
      cout << s << endl;
      return 0;
    }
  }
  if (s[0] >= s[n - 1]) {
    s.erase(s.begin());
    cout << s << endl;
  } else {
    s.erase(s.end() - 1);
    cout << s << endl;
  }
  return 0;
}
