count = 0 for i in range(10, 100): if (i % 10 == 2 or i % 10 == 7) and i % 4 == 0: count += 1 print(count)