Codeforces Round #361 (Div. 2) D - Friends and Subsequences

NoSuchKey