Sum In The Tree

easy
https://codeforces.com/problemset/problem/1098/A

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Walking Between Houses
Next
Pepcoder And Alarm

Related Questions