F. Simplest queries on a tree | День 3