#include #include #include void solve() { std::string s; std::cin >> s; int n = s.length(); for (int i = 0; i + 9 <= n; ++i) { std::set cs(s.begin() + i, s.begin() + i + 9); switch (cs.size()) { case 9: std::cout << "Yes\n"; return; } } std::cout << "No\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }