Decrease all the products back to their original state
i = curlen NEW_LINE while ( i >= 0 and len ( s ) > i ) : NEW_LINE INDENT i -= 1 NEW_LINE t *= ord ( s [ i ] ) - 48 NEW_LINE prod [ t ] -= 1 NEW_LINE DEDENT