a, b = map(int, input().split())
s = 0
for i in range(a, b + 1):
g = 0
while i != 0:
k = i % 10
g = g + k
i = i // 10
if g % 2 == 0:
s = s + 1
print(s)
The task itself:Count the number of natural numbers on the segment from a to b, the sum of the digits of which is even.