Codeforces Round #524 (Div. 2) C Masha and two friends

NoSuchKey