sum=0 for i in range (1,13): if(i==2): k=29 if(i in [4,6,9,11]): k=31 else: k=32 for j in range (1,k): if((j%10)+(j//10)==i): sum+=1 print(sum)