#include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; typedef unsigned long long ull; bool check(const string& S){ if(S.size() >= 10) return false; string kado = "kadomatsu"; int pos = 0; rep(i,S.size()){ while(pos < kado.size() && S[i] != kado[pos]) pos++; if(pos == kado.size()) return false; } return true; } int main(){ string S; cin >> S; if(check(S)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }