#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
void solve() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  for (long long i = 0; i < (long long)(s.size()) - 1; i += 1) {
    if (s[i] > s[i + 1]) {
      for (long long j = 0; j < i; j += 1) cout << s[j];
      for (long long j = i + 1; j < n; j += 1) cout << s[j];
      cout << '\n';
      return;
    }
  }
  for (long long i = 0; i < n - 1; i += 1) cout << s[i];
  cout << '\n';
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long tin = 1;
  while (tin--) solve();
  return 0;
}
