#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
bool cmps(pair<long long, long long> p1, pair<long long, long long> p2) {
  return p1.second < p2.second;
}
int32_t main() {
  long long n;
  cin >> n;
  string str;
  cin >> str;
  for (long long i = 0; i < str.size() - 1; i++) {
    if (str[i] > str[i + 1]) {
      str.erase(str.begin() + i);
      cout << str << endl;
      return 0;
    }
  }
  str.pop_back();
  cout << str << endl;
  return 0;
}
