#include <bits/stdc++.h>
int main() {
  long long n, check = 0, count = 0;
  scanf("%I64d", &n);
  char str[n + 100];
  scanf("%s", &str);
  for (int i = 1; i <= n; i++) {
    if (str[i] < str[i - 1] && check == 0 & count < n - 1) {
      check++;
      count++;
      i++;
      printf("%c", str[i - 1]);
    } else if (count < n - 1) {
      count++;
      printf("%c", str[i - 1]);
    }
  }
}
