#include
using namespace std;
struct Balloon{
int cnt;
char name[20];
}Ball[1010];
int main()
{
int n;
int i,j,t;
int max=0,count=0;
char ch[20];
while(cin>>n&&n)
{
for(i=0;i
cin>>ch;
if(i==0)
{
Ball[count].cnt=1;
strcpy(Ball[count++].name,ch);
}
max = 1;
for(j=0;j
{
Ball[j].cnt++;
max = 0;
}
if(max)
{
Ball[count].cnt=1;
strcpy(Ball[count++].name,ch);
}
}
max = 0;
for(i=0;i
max=Ball[i].cnt;
t=i;
}
cout<
max=0;
}
return 0;
}