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

int main() {
  
  string S;
  cin >> S;

  for(int i = 0;i <= 7;i++) {
    string bef = S.substr(0,i);
    string aft = S.substr(S.size()-7+i,7-i);
    if(bef + aft == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }

  cout << "NO" << endl;
}

