#include using namespace std; int main() { string s; cin >> s; if (s == "k" || s == "a" || s == "d" || s == "o" || s == "m" || s == "t" || s == "s" || s == "u") { cout << "Yes" << endl; } else if (s == "ka" || s == "ad" || s == "do" || s == "om" || s == "ma" || s == "at" || s == "ts" || s == "su" ) { cout << "Yes" << endl; } else if (s == "kad" || s == "ado" || s == "dom" || s == "oma" || s == "mat" || s == "ats" || s == "tsu") { cout << "Yes" << endl; } else if (s == "kado" || s == "adom" || s == "doma" || s == "omat" || s == "mats" || s == "atsu") { cout << "Yes" << endl; } else if (s == "kadom" || s == "adoma" || s == "domat" || s == "omats" || s == "matsu") { cout << "Yes" << endl; } else if (s == "kadoma" || s == "adomat" || s == "domats" || s == "omatsu") { cout << "Yes" << endl; } else if (s == "kadomat" || s == "adomats" || s == "domatsu") { cout << "Yes" << endl; } else if (s == "kadomats" || s == "adomatsu") { cout << "Yes" << endl; } else if (s == "kadomatsu") { cout << "Yes" << endl; } else { cout << "No" << endl; } }