import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;

void main() {
    auto N = readln.chomp.to!int;
    auto S = readln.chomp;

    int i = 0;
    for (; i < N - 1; ++i) {
        if (S[i] > S[i + 1]) break;
    }

    S = S[0..i] ~ S[i+1..N];

    S.writeln;
}
