#include #include using namespace std; #define YES cout << "Yes" << endl #define NO cout << "No" << endl int main(void){ string base = "kyoprotenkei90", s; cin >> s; int pos = -1; for (int i = 0; i < 14; i++) { pos = base.find(s.substr(i, 1)); if (pos != string::npos) base.erase(pos, 1); } base.size() == 0 ? YES : NO; }