Codeforces Round #522 (Div. 2) C. Playing Piano

NoSuchKey