arr = []
for i in range(1, 100):
arr.append(i)
arr2 = []
for i in arr:
if i % 2 == 0 and int(str(i)[-1]) == 6:
arr2.append(i)
print("ответ:", str(sum(arr2)) + ".")
arr = []
for i in range(1, 100):
arr.append(i)
arr2 = []
for i in arr:
if i % 2 == 0 and int(str(i)[-1]) == 6:
arr2.append(i)
print("ответ:", str(sum(arr2)) + ".")