Программа:
Python:
N = int(input())
summ = 0
while N != 0:
if len(str(N)) == 3 and N % 4 == 0:
summ += N
print(summ)
Программа:
Python:
N = int(input())
summ = 0
while N != 0:
if len(str(N)) == 3 and N % 4 == 0:
summ += N
N = int(input())
print(summ)