/** * author: shu8Cream * created: 29.01.2021 20:56:25 **/ #include using namespace std; #define rep(i,n) for (int i=0; i<(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using P = pair; using vi = vector; using vvi = vector; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; string key = "kadomatsu"; int pos=-1; bool ok = false; vector ans; rep(s,1<<9){ string tmp; rep(i,9){ if(s>>i&1) tmp+=key[i]; } ans.push_back(tmp); } rep(i,ans.size()) if(s==ans[i]) ok=true; cout << (ok ? "Yes" : "No") << endl; }