#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; vector ss = { "kadomatsu", "adomatsu", "kdomatsu", "kaomatsu", "kadmatsu", "kadoatsu", "kadomtsu", "kadomasu", "kadomatu", "kadomats", }; for (auto x:ss) { if (x == s) { cout << "Yes\n"; return 0; } } cout << "No\n"; }