Find the sum of numbers divisible by 6 in the given sequence of natural numbers.
The first line of the input is the number of elements in the sequence; the next lines are the elements themselves.
It is guaranteed that there is always a number divisible by 6 in the sequence.