#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = (int)1e9 + 7;
const int INF = (int)100100100;

int main() {
    //ll N; cin >> N;
    //ll N,M; cin >> N >> M;
    string S; cin >> S;
    //ll H,W; cin >> H >> W;
  bool ans=false;
  for(int i=0;i<S.length();i++){
    for(int j=i;j<S.length();j++){
      string T=S.erase(S.begin()+i,S.begin()+j);
      if(T=="keyence")ans=true;
    }
  }
  
  if(ans)  cout << "YES" << endl;
  else cout << "NO";
}

/*



 */
