#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string s;cin>>s;
  regex re("(.*keyence|k.*eyence|ke.*yence|key.*ence|keye.*nce|keyence|keyen.*ce|keyenc.*e|keyence.*)");
  smatch match;
  if( regex_match(s, match, re) ) cout<<"YES";
  else cout<<"NO";

  return 0;
}