Codeforces 126B. Password(KMP,DP)

NoSuchKey