#import"string.h" S[55][9],j;main(i){for(;gets(S+j++);qsort(S,j,36,strcmp));for(;i