n = int(input())
count = 0
while n != 0:
if n % 3 == 0:
count += 1
print(count)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input())
count = 0
while n != 0:
if n % 3 == 0:
count += 1
n = int(input())
print(count)