#include <bits/stdc++.h>
using namespace std;
void solveTestCase() {
  long long int n, ind = -1;
  cin >> n;
  string str;
  cin >> str;
  for (long long int i = 0; i < str.length() - 1; i++) {
    if (str[i] > str[i + 1]) {
      ind = i;
      break;
    }
  }
  string ans;
  if (ind != -1) {
    for (long long int i = 0; str[i]; i++)
      if (ind != i) ans += str[i];
  } else {
    for (long long int i = 0; i < str.length() - 1; i++) ans += str[i];
  }
  cout << ans << '\n';
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solveTestCase();
  return 0;
}
