#include <bits/stdc++.h>
int main() {
  int flag = 0, n;
  std::string s;
  std::cin >> n >> s;
  for (int i = 0; i < n; i++) {
    if (flag == 1 || s[i] <= s[i + 1]) {
      std::cout << s[i];
    } else {
      flag = 1;
    }
  }
  return 0;
}
