3 4 6 7 9
3
nums = input().split() count = 0 for x in nums: if int(x) % 3 == 0: count += 1 print(count)