Codeforces Round #527 (Div. 3) B. Teams Forming

NoSuchKey