N=10
1: 2 6 0
2: 3 7 0
3: 4 0
4: 5 9 0
5: 1 10 0
6: 8 0
7: 9 0
8: 3 10 0
9: 6 0
10: 7 0