n = input()
b = []
for i in n:
if int(i) <= 4:
b.append(int(i))
print(sum(b))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = input()
b = []
for i in n:
if int(i) <= 4:
b.append(int(i))
print(sum(b))