Useful digits
Statement
Goal
Print the total count of circles in each number.Tip :
0,6, and 9 has 1 circle while 8 has 2.
Input
Space separated numbers
Output
Line 1 : Total count of circles
Constraints
There will only be digits and spaces in the input.
There will be at maximum 10 numbers.
There will be at maximum 10 numbers.
Example
Input
8809
Output
6
Game modes
Fastest, Shortest
Test cases
Test 1 Test
Input
8809
Output
6
Validator 1 Validator
Input
1111 3213 7662
Output
2
Test 2 Test
Input
9313 0000 2222 3333 5555
Output
5
Validator 2 Validator
Input
8193 8096 1012 7777 9999 7756 6855 9881 5531 2581
Output
24
Test 3 Test
Input
7111 2172 6666
Output
4
Validator 3 Validator
Input
7124 5423 1211
Output
0
Test 4 Test
Input
5648 1124 8956 5487 5624 45556 564561 215487 123 333
Output
15
Validator 4 Validator
Input
8989 9999 6669 7874
Output
16
Test 5 Test
Input
4213 1537 7777 2323
Output
0
Validator 5 Validator
Input
1234 5678 9012
Output
5
Solution language
Solution
Stub generator input