#include<iostream> #include<string> using namespace std; int main() { string pre,cur,rep; int max=1,t=0; while(cin>>cur&&cur!="stop") { if(cur==pre) { ++t; } else { t=1; pre=cur; } if(t>max) { max=t; rep=pre; } } if(max!=1) cout<<rep<<" repeat "<<max<<" times."<<endl; else cout<<"no repeat!"<<endl; return 0; }