Codeforces Round #484 (Div. 2)Cut 'em all!(dfs)

NoSuchKey