Codeforces Round #443 (Div. 1) C. Tournament

NoSuchKey