#include <bits/stdc++.h>
using namespace std;
int main(){

  string s;
  cin >> s;
  string key = "keyence";
  int count = 0;
  int rest = 0;
  for(int i = 0; i < s.size() ; i++){
  	if(count > 1){
    	for(int j = rest; j < 7; j++){
        	if(i < s.size() && key.at(j) != s.at(i)){
              count += 1;
              rest = j;
              break;
            }
          i++;
        }
    }
  }
  string s;
  s = (rest == 6)? "YES": "NO";
  cout << s<<endl;
}