#include using namespace std; int main(){ string S; cin >> S; string T = "kadomatsu"; bool ok = false; for (int i = 0; i < (1 << 9); i++){ string T2; for (int j = 0; j < 9; j++){ if (i >> j & 1){ T2 += T[j]; } } if (S == T2){ ok = true; } } if (ok){ cout << "Yes" << endl; } else { cout << "No" << endl; } }