N =int(input('0到1000'))
L =[]
t =0
for iin range(1,T+1):
for jin range(i,T+1):
if sum(range(i,j+1)) ==N:
t =t+1
L.append(list(range(i,j+1)))
print(L)
print(t)
N =int(input('0到1000'))
L =[]
t =0
for iin range(1,T+1):
for jin range(i,T+1):
if sum(range(i,j+1)) ==N:
t =t+1
L.append(list(range(i,j+1)))
print(L)
print(t)