func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string s;     int i, count1 = 0, count = 0;     cin >> s;     for (i = 0; i < s.length(); i++) {       if (s[i] ==  1 ) {         count++;         count1 = 0;         if (count == 7) {           cout <<  YES ;           return 0;         }       } else {         count = 0;         count1++;         if (count1 == 7) {           cout <<  YES ;           return 0;         }       }     }     cout <<  NO ;     return 0;   }   