#include using namespace std; int main(){ string S,T; T = "kadomatsu"; cin >> S; int s_index=0,t_index = 0; while(s_index < S.size() && t_index < T.size()){ if(T[t_index] == S[s_index]){ s_index++; t_index++; } else { t_index++; } } if(s_index >= S.size()){ cout << "Yes" << endl; } else { cout << "No" << endl; } }