90
qpython устанавливай
#-*-coding:utf8;-*-
#qpy:2
#qpy:console
count=0
na =[]
for i in range(1,9):
count+=1
na=na+[i*10+i]
for o in range(0,9):
count+=1
na=na+[i*100+o*10+i]
f=i*1000+o*100+o*10+i
if f<2016:<br> count+=1
na=na+[f]
print(count)
print(na)