#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, 1, 0, -1, -1, -1, 0, 1};
int dy[] = {0, 1, 1, 1, 0, -1, -1, -1};
template <typename T>
void printV(vector<T> v) {
  for (int i = 0; i < v.size(); i++) {
    cout << v[i] % 1000000007 << " ";
  }
  cout << endl;
}
template <typename T>
void printA(T arr[], long long n) {
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
  cout << endl;
}
template <typename T>
void printPA(T* arr, long long n) {
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int idx = s.length() - 1;
  for (int i = 0; i < s.length() - 1; i++) {
    if (s[i] > s[i + 1]) {
      idx = i;
      break;
    }
  }
  cout << s.substr(0, idx) + s.substr(idx + 1) << endl;
  return 0;
}
