func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string s;     cin >> s;     int count = 1;     bool res = false;     for (int i = 0; i < s.length() - 1; i++) {       if (s.at(i) == s.at(i + 1)) {         count++;         if (count > 6) {           res = true;           break;         }       } else {         count = 1;       }     }     if (res) {       cout <<  YES  << endl;     } else {       cout <<  NO  << endl;     }     return 0;   }   