Codeforces last round question A(reorder)

PLS OPEN NEW THREAD FOR THAT