day = [31,28,31,30,31,30,31,31,30,31,30,31] ans = 0 for i in range(12): for j in range(day[i]): if i+1 == j%10 + j//10: ans += 1 print(ans)