mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 10:12:55 +00:00
20 lines
272 B
C++
20 lines
272 B
C++
#include <iostream>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
string s;
|
|
cin >> s;
|
|
if (s.find("0000000") != -1 || s.find("1111111") != -1)
|
|
{
|
|
cout << "YES" << endl;
|
|
}
|
|
else
|
|
{
|
|
cout << "NO" << endl;
|
|
}
|
|
return 0;
|
|
}
|