/** * @FileName a.cpp * @Author kanpurin * @Created 2021.01.29 21:33:00 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s;cin >> s; string t = "kadomatsu"; int p = 0; for (int i = 0; i < s.size(); i++) { while (t.size() > p && t[p] != s[i]) { p++; } if (p == t.size() && i != s.size()) { puts("No"); return 0; } } puts("Yes"); return 0; }