a=[31,28,31,30,31,30,31,31,30,31,30,31] c=0 for i in range(12): for j in range(10,a[i]+1): if i==int(str(j)[0])+int(str(j)[1]): c+=1 print(c+9)