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