cswork / OAOpen practice workspace

eBayOA #5

Count Odd Digit-Zero Occurrences

Estimated EasyJudge-ready

Topics (AI-labelled)Bits & Math

Count the elements whose decimal representation contains an odd number of 0s. The integer 0 is represented as 0, so it contains one zero itself.

Input

n (1..200000), followed by n non-negative integers (≤10¹⁸). The ranges are site supplements.

Output

Output the number of qualifying elements.

Example 1

Input:

5
0 10 100 1010 1203

Output:

3

Example 2

Input:

3
1 2 3

Output:

0

Example 3

Input:

4
10001 10000 1000000 90909

Output:

1

Editorial

Loading solution…