#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  for (int i = 1; i < s.length(); i++) {
    if (s[i] < s[i - 1]) {
      string ans = "";
      for (int j = 0; j < s.length(); j++) {
        if (j != i - 1) ans += s[j];
      }
      cout << ans;
      return 0;
    }
  }
  string ans = "";
  for (int j = 0; j < s.length(); j++) {
    if (j != s.length() - 1) ans += s[j];
  }
  cout << ans;
  return 0;
}
