Print the result
for i in range ( n ) : NEW_LINE INDENT if ( ind == i ) : NEW_LINE INDENT print ( 2 , end = " ▁ " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( ans [ i ] , end = " ▁ " ) NEW_LINE DEDENT DEDENT