#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; string S, S1 = "kyoprotenkei90"; int ab1[26], ab2[26], num1[10], num2[10]; int main() { cin >> S; for (int i = 0; i < S1.size(); i++) { if ('a' <= S1[i] && S1[i] <= 'z') ab1[S1[i] - 'a']++; if ('0' <= S1[i] && S1[i] <= '9') num1[S1[i] - '0']++; } for (int i = 0; i < S.size(); i++) { if ('a' <= S[i] && S[i] <= 'z') ab2[S[i] - 'a']++; if ('0' <= S[i] && S[i] <= '9') num2[S[i] - '0']++; } for (int i = 0; i < 26; i++) if (ab1[i] != ab2[i]) { cout << "No" << endl; return 0; } for (int i = 0; i < 10; i++) if (num1[i] != num2[i]) { cout << "No" << endl; return 0; } cout << "Yes" << endl; return 0; }