Count on a tree II

Problem Name:
Count on a tree II
Site:Spoj
Links:
Tags:
Problem setters: