Print the path
print ( " YES " ) NEW_LINE for i in range ( 1 , K + 2 ) : NEW_LINE INDENT if ( i & 1 ) : NEW_LINE INDENT print ( idx1 , end = " ▁ " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( idx2 , end = " ▁ " ) NEW_LINE DEDENT DEDENT return NEW_LINE