count = 1 for i in range(1,13): for n in range(1,31): f = n // 10 s = n % 10 if (f+s)==i: count +=1 print(count)