#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); string s; cin >> s; string t = "kadomatsu"; rep(bit, 1 << t.size()) { string u = ""; rep(i, t.size()) { if (bit & (1 << i)) u += t[i]; } if (u == s) { cout << "Yes" << '\n'; return 0; } } cout << "No" << '\n'; return 0; }