#include <bits/stdc++.h>
using namespace std;
void printSmallest(string& s) {
  int n = s.length(), k = 0;
  for (int i = 0; i < n - 1; i++) {
    if (s[i] > s[i + 1]) {
      s[i] = '#';
      k = 1;
      break;
    }
  }
  if (!k)
    for (int i = 0; i < n - 1; i++) cout << s[i];
  else
    for (char c : s)
      if (c != '#') cout << c;
  cout << endl;
}
int main() {
  int n;
  string s;
  cin >> n;
  cin >> s;
  printSmallest(s);
  return 0;
}
