#include using namespace std; int main(){ string s;cin>>s; string k = "kadomatsu"; int nw = 0; for(int i = 0; s.size() > i; i++){ if(nw == 9){ cout << "No" << endl; return 0; } while(k[nw] != s[i]){ nw++; if(nw == 9){ cout << "No" << endl; return 0; } } nw++; } cout << "Yes" << endl; }