# coding:UTF-8 answer = 0 day = 1 while day <= 31: if day < 10: daySum = day else: daySum = (day / 10) + (day % 10) if daySum <= 12: answer += 1 day += 1 print(answer)