#include using namespace std; struct uns_t {} uns; template auto vec(Element init, Head arg, Args ...args) { if constexpr (sizeof...(Args) == 0) return std::vector(arg, init); else return std::vector(arg, vec(init, args...)); } template auto vec(uns_t, Head arg, Args ...args) { return vec(Element(), arg, args...); } int main() { constexpr string_view t = "kadomatsu"; string s; cin >> s; auto iter = begin(t); for (auto c : s) { while (iter != end(t) && *iter != c) ++iter; if (iter == end(t)) { cout << "No" << endl; return 0; } iter += iter != end(t); } cout << "Yes" << endl; }