Codeforces 966C Big Secret(greedy)

NoSuchKey