#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; char c[10] = { 'k','a','d','o','m','a','t','s','u' }; int main() { string s; cin >> s; for (int i = 0; i < (1 << 9); i++) { string s1 = ""; for (int j = 0; j < 9; j++) { if (i & (1 << j)) { s1 += c[j]; } } if(s1 == s) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }