#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p = 0;
  string s;
  char m = char(96);
  cin >> n >> s;
  for (int i = 0; (i < n) && (s[i] >= m); i++) p = i, m = s[i];
  if (!p && (n == 1)) p = 300000;
  for (int i = 0; i < n; i++)
    if (i != p) cout << s[i];
  cout << "\n";
  return 0;
}
