count = 0 for i in range(1,32): if i // 10 + i % 10 < 12: count += 1 print(count-1)