Codeforces Round #624 (Div. 3)B. WeirdSort

NoSuchKey