EasyRating 1000
No 010 Allowed
Change as few characters as possible so that the binary string has no 010 inside. Print the number of changes.
Input
A binary string.
Output
One integer.
Sample 1
Input
0101010
Output
2
Sample 2
Input
01100
Output
0
Output appears here