Change boolean to int
if ( digits [ i - 1 ] != '0' ) : NEW_LINE INDENT dig1 = 1 ; NEW_LINE DEDENT if ( digits [ i - 2 ] == '1' ) : NEW_LINE INDENT dig2 = 1 ; NEW_LINE DEDENT else : NEW_LINE INDENT dig2 = 0 ; NEW_LINE DEDENT if ( digits [ i - 2 ] == '2' and digits [ i - 1 ] < '7' ) : NEW_LINE INDENT dig3 = 1 ; NEW_LINE DEDENT count2 = dig1 * count1 + NEW_LINE INDENT dig2 + dig3 * count0 ; NEW_LINE DEDENT count0 = count1 ; NEW_LINE count1 = count2 ; NEW_LINE