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

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

  int m = S.size();
  
  string s_tmp;
  for(int i = 0; i <= m; ++i){
    for(int j = i; j <= m; ++j){
      s_tmp = S.substr(0, i) + S.substr(j);
      if(s_tmp == "keyence"){
        cout << "YES" << endl;
        return 0;
      }
    }
  }

  cout << "NO" << endl;
}