#include<iostream>
#include<string>
using namespace std;
int main(){
string str;
while(cin>>str){
int count=1;
int t=1;
for(int i=0;i<str.length();++i){
if(str[i]==str[i+1])
++count;
else {
if(count>=7){
t=0;
break;
}
else
count=1;
}
}
if(t)
cout<<"NO"<<'\n';
else
cout<<"YES"<<'\n';
}
return 0;
}
CF:96A.Football
最新推荐文章于 2019-09-05 21:17:00 发布