#Python
a = input().split()
for x in range(len(a)):
a[x] = int(a[x])
suma = 0
for x in a:
if x % 10 == 6 and x % 3 == 0:
suma += x
print(suma)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#Python
a = input().split()
for x in range(len(a)):
a[x] = int(a[x])
suma = 0
for x in a:
if x % 10 == 6 and x % 3 == 0:
suma += x
print(suma)