Карманные деньги. Задача на Python.
Карманные деньги. Задача на Python.
a = int(input()) b = int(input()) c = int(input())
total_saved = 0
if a % 10 == 0 and a > 499: total_saved += a if b % 10 == 0 and b > 499: total_saved += b if c % 10 == 0 and c > 499: total_saved += c
print(total_saved)