days=[day for day in range(32)] count=0 for day in days: if day<=12: count+=1 else: sum=day//10+day%10 if sum<=12: count+=1 print(count)