# coding: utf-8 # Your code here! lastDay = [31,28,31,30,31,30,31,31,30,31,30,31] ct = 0 for i in range(1,13): for j in range(1,lastDay[i-1]+1): temp1 = i temp2 = (j // 10) + (j % 10) if temp1 == temp2: ct += 1 print(ct)