#include <iostream>
#include <set>

using namespace std;

int main(){
    string s,t="kadomatsu";
    cin>>s;
    set<string> chk;
    
    for(int i=0;i<(1<<t.length());i++){
        string tmp="";
        for(int j=0;j<t.length();j++){
            if((i>>j)&1) tmp=tmp+t[j];
        }
        chk.insert(tmp);
    }
    if(chk.count(s)){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }
    return 0;
}