Change bool to int
count2 = ( ( digits [ i - 1 ] != ' ' ) * count1 ) + ( ( digits [ i - 2 ] == ' ' ) || ( digits [ i - 2 ] == ' ' && digits [ i - 1 ] < ' ' ) ) * count0 ; count0 = count1 ; count1 = count2 ; }