Codeforces 766C:Mahmoud and a Message(DP)

NoSuchKey