#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using maxHeap = priority_queue<int>;
using minHeap = priority_queue<int, vector<int>, greater<int>>;
int n;
string str;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int flag, x;
  while (cin >> n) {
    cin >> str;
    flag = 0;
    x = n;
    str[n] = 'z';
    for (int i = 0; i < n; i++) {
      if (str[i] > str[i + 1]) {
        flag = 1;
        x = i;
        break;
      }
    }
    if (flag == 0) {
      x = n - 1;
    }
    for (int i = 0; i < n; i++) {
      if (i != x) {
        cout << str[i];
      }
    }
    cout << '\n';
  }
  return 0;
}
