11 3
2#  n  1
31  1 -1 # n >= 1
4-1
5
62 4
7#  i  n  1
81  1  0  1 # i >= -1
91 -1  1  0 # i <= n
10