codeforces #619 div.2 (C - Ayoub's function)

NoSuchKey