#include <bits/stdc++.h>
using namespace std;

int main() {
    string S;
    cin >> S;
    map<char,int>tmp1,tmp2;
    string T = "kyoprotenkei90";
    for(int i = 0; i < 14; i++) {
        tmp1[S[i]]++;
        tmp2[T[i]]++;
    }
    if(tmp1 == tmp2) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}