#include <iostream>
#include <string>
using namespace std;

int main()
{
    string s;
    cin >> s;
    int n = s.size();
    string t = "keyence";
    int i = 0;
    for(; i < 7; i++) if(s[i] != t[i]) break;
    int j = 0;
    for(; j < 7; j++) if(s[n - 1 - j] != t[6 - j]) break;
    if(i + j >= 7) cout << "YES" << endl;
    else cout << "NO" << endl;
}