[Codeforces 1037F] Maximum Reduction

NoSuchKey