#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, m, a, b, c, n, q, l;
  string s, t;
  scanf("%lld", &l);
  cin >> s;
  bool flag = 0;
  for (long long i = 1; i < l; i++) {
    if (s[i] < s[i - 1] && flag == 0) {
      flag = 1;
      continue;
    } else
      t += s[i - 1];
  }
  if (flag == 0) {
    cout << t << endl;
  } else {
    t += s[l - 1];
    cout << t << endl;
  }
  return 0;
}
