Codeforces Round #647 (Div. 2) D. Johnny and Contribution

NoSuchKey