Codeforces Round #500 (Div. 1) [based on EJOI] C. Hills

NoSuchKey