#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int strlen(char *);
int main() {
  char s[101];
  scanf("%s", s);
  int i, count = 1;
  for (i = 1; i < strlen(s); i++) {
    if (s[i] == s[i - 1])
      count++;
    else
      count = 1;
    if (count > 6) {
      printf("YES\n");
      return 0;
    }
  }
  printf("NO\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1050 <scanf@plt>
movl   $0x1,-0x78(%rbp)
movl   $0x1,-0x74(%rbp)
mov    -0x74(%rbp),%eax
mov    %eax,-0x7c(%rbp)
lea    -0x70(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x7c(%rbp),%eax
cmp    %ecx,%eax
jge    11e5 <main+0xb5>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
mov    -0x74(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl -0x70(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    11a9 <main+0x79>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    11b0 <main+0x80>
movl   $0x1,-0x78(%rbp)
cmpl   $0x6,-0x78(%rbp)
jle    11d2 <main+0xa2>
lea    0xe42(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11f8 <main+0xc8>
jmp    11d7 <main+0xa7>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1160 <main+0x30>
lea    0xe1c(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
lea    0xebb(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0xea4(%rip),%r14
cmp    $0x2,%eax
jl     11ac <main+0x7c>
mov    $0x1,%r12d
mov    $0x1,%ebp
lea    0xe90(%rip),%r15
mov    %rsp,%r13
mov    $0x1,%ebx
xchg   %ax,%ax
movzbl (%rsp,%rbp,1),%eax
add    $0x1,%ebx
cmp    -0x1(%rsp,%rbp,1),%al
cmovne %r12d,%ebx
cmp    $0x7,%ebx
jge    11a9 <main+0x79>
add    $0x1,%rbp
mov    %r13,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbp
jl     1180 <main+0x50>
jmp    11ac <main+0x7c>
mov    %r15,%r14
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [5 x i8] c"YES\0A\00"
@.str.2 = [4 x i8] c"NO\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [101 x i8]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
store i32 1, i32* %4
store i32 1, i32* %3
br label %7
7: ; preds = %35, %0
%8 = load i32, i32* %3
%9 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%10 = call i32 @strlen(i8* %9)
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %38
12: ; preds = %7
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 %14
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = load i32, i32* %3
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %17, %23
br i1 %24, label %25, label %28
25: ; preds = %12
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %29
28: ; preds = %12
store i32 1, i32* %4
br label %29
29: ; preds = %28, %25
%30 = load i32, i32* %4
%31 = icmp sgt i32 %30, 6
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %40
34: ; preds = %29
br label %35
35: ; preds = %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
br label %7
38: ; preds = %7
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %40
40: ; preds = %38, %32
%41 = load i32, i32* %1
ret i32 %41
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@str = [3 x i8] c"NO\00"
@str.3 = [4 x i8] c"YES\00"
define i32 @main() {
%1 = alloca [101 x i8]
%2 = getelementptr inbounds [101 x i8], [101 x i8]* %1, i64 0, i64 0
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @strlen(i8* %2)
%5 = icmp sgt i32 %4, 1
br i1 %5, label %10, label %23
6: ; preds = %10
%7 = call i32 @strlen(i8* %2)
%8 = sext i32 %7 to i64
%9 = icmp slt i64 %22, %8
br i1 %9, label %10, label %23
10: ; preds = %0, %6
%11 = phi i64 [ %22, %6 ], [ 1, %0 ]
%12 = phi i32 [ %20, %6 ], [ 1, %0 ]
%13 = getelementptr inbounds [101 x i8], [101 x i8]* %1, i64 0, i64 %11
%14 = load i8, i8* %13
%15 = add nsw i64 %11, -1
%16 = getelementptr inbounds [101 x i8], [101 x i8]* %1, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = icmp eq i8 %14, %17
%19 = add nsw i32 %12, 1
%20 = select i1 %18, i32 %19, i32 1
%21 = icmp sgt i32 %20, 6
%22 = add nuw nsw i64 %11, 1
br i1 %21, label %23, label %6
23: ; preds = %6, %10, %0
%24 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0), %0 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0), %6 ]
%25 = call i32 @puts(i8* dereferenceable(1) %24)
ret i32 0
}