codeforces 9D How many trees?

NoSuchKey