#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;

#include <bits/stdc++.h>
using namespace std;

bool iskado(int x,int y,int z){
  if(y>x && y>z && x!=z) return true;
  if(y<x && y<z && x!=z) return true;
  return false;
}

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

  return 0;
}