15 lines
249 B
Python
15 lines
249 B
Python
def main():
|
|
nb = input()
|
|
team = "0"
|
|
count = 0
|
|
for i in nb:
|
|
if i != team:
|
|
team = i
|
|
count = 0
|
|
count += 1
|
|
if count >= 7:
|
|
print("YES")
|
|
return
|
|
print("NO")
|
|
|
|
main() |