s = 0
n = int(input())
for i in range(1,n+1):
g = int(input())
if g % 3 == 0:
s += 1
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
s = 0
n = int(input())
for i in range(1,n+1):
g = int(input())
if g % 3 == 0:
s += 1
print(s)