#include using namespace std; #define i_nt i ## nt #define m_ain m ## ain #define i_f i ## f #define f_or f ## or #define s_tring s ## tring #define c_har c ## har i_nt m_ain() { s_tring s; cin >> s; i_nt n = s.size(); f_or (i_nt i = 0; i + 9 <= n; i++) { s_tring t = s.substr(i, 9); set s; f_or (c_har c : t) { s.insert(c); } i_f (s.size() == 9) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }