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