Pop from the stack
s . pop ( ) NEW_LINE for i in range ( n ) : NEW_LINE for it in adj [ i ] : NEW_LINE INDENT first = 0 if i not in pos else pos [ i ] NEW_LINE second = 0 if it not in pos else pos [ it ] NEW_LINE DEDENT