5
0 1 1
1 3 2
1 4 1
2 4 1
