Xenia programmer tree consist n node we consider tree node index 1 n we consider node initially paint red node paint blueThe distance tree node v u number edge short path v uXenia need learn quickly execute query type paint specify blue node red calculate red node close give print short distance close red node your task write program execute describe query