<a href="https://www.spoj.com/problems/QTREE3/">https://www.spoj.com/problems/QTREE3/</a> Input Format . Output Format . Constraints . Notice . Example Input 1 Output 1