#include <bits/stdc++.h>
using namespace std;
int _m = -1, id = 0, n;
int main() {
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] > s[i + 1]) {
      id = i;
      break;
    }
  }
  for (int i = 0; i < id; ++i) cout << s[i];
  if (id + 1 < s.size()) {
    for (int i = id + 1; i < s.size(); ++i) cout << s[i];
  }
  return 0;
}
