#include#includeintmain(){intn,a[1001],i,j,k,m,max;charstr[1001][16],str1[1001][16];while(scanf("%d",&n)!=EOF,n){getchar();