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

typedef long long ll;

string key = "keyence";

int main(){
  string s;
  cin >> s;
  int size = s.size();
  
  int i=0;
  while(s[i] == key[i]) ++i;
  
  for(int j=size-7+i; j<size; j++){
    if(s[j] != key[i++]){
      cout << "NO" << endl;
      return 0;
    }
  }
  
  cout << "YES" << endl;
}