Codeforces 1189F. Array Beauty

NoSuchKey