favorite We need a little bit of your help to keep things running, click on this banner to learn more

Those that are divisible by 6

Those that are divisible by 6

For n integers find the sum and the number of positive integers divisible by 6.


First line contains amount of integers n (0 < n100), next line contains n numbers that do not exceed 10000 by absolute value.


Print the number of required numbers and their sum.

Time limit 1 seconds
Memory limit 128 MiB
Input example #1
12 15 18

Output example #1
2 30
Source SFE-2010 Variant 8