Exchange Rows And Columns

Input Lines

Output Lines


Input columns may be separated by spaces or tabs; output columns will be separated by tabs.
Blank input lines and text following a # character on a line will be ignored.