出现两个相邻不是相同马上复原ans=1;
#include<stdio.h>
#include<string.h>
int main()
{
char a[1000];
while(~scanf("%s",a))
{
int l;
l=strlen(a);
int ans=1;
for(int i=0;i<l;i++)
{
if(a[i]==a[i+1])
ans=ans+1;
else
ans=1;
if(ans>=7)
{
printf("YES\n");
break;
}
}
if(ans<7)
printf("NO\n");
}
return 0;
}