http://codeforces.com/problemset/problem/96/A
import java.util.Scanner;
public class Football {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char[] ch = scanner.next().toCharArray();
int n = ch.length;
int index = 1;
int max = 0;
for(int i = 1; i <n; i++) {
if(ch[i] != ch[i-1]) {
index = 1;
} else index++;
if(index > max) max = index;
}
if(max >= 7) System.out.println("YES");
else System.out.println("NO");
}
}