#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int a;
  cin >> a;
  string str;
  cin >> str;
  char mx = 'a';
  int flag = 0;
  for (int i = 0; i < a - 1; i++) {
    if (str[i + 1] < str[i] & flag == 0) {
      flag = 1;
      continue;
    }
    { cout << str[i]; }
  }
  if (flag) cout << str[a - 1];
  return 0;
}
