We put the details of component in final output array
a . Add ( j ) ; b . Add ( w ) ; c . Add ( ans ) ; } Console . WriteLine ( a . Count ) ; for ( int j = 0 ; j < a . Count ; ++ j ) Console . WriteLine ( a [ j ] + " ▁ " + b [ j ] + " ▁ " + c [ j ] ) ; }