#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long i;
  for (i = 0; i < n - 1; ++i) {
    if (s[i] > s[i + 1]) {
      break;
    }
  }
  for (long long j = 0; j < i; ++j) cout << s[j];
  for (long long j = i + 1; j < n; ++j) cout << s[j];
  return 0;
}
