#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string str, mystr = "";
  cin >> n;
  cin >> str;
  for (int i = 0; i < n - 1; i++)
    if (str[i] > str[i + 1]) {
      for (int j = i + 1; j < n; j++) mystr += str[j];
      break;
    } else
      mystr += str[i];
  if (mystr.length() == n)
    for (int i = 0; i < n - 1; i++) cout << mystr[i];
  else
    cout << mystr;
}
