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

signed main() {
  string S;
  cin >> S;
  
  string T;
  for( int i = 0; i < S.size(); i++ ){
    for( int j = 0; j < S.size(); j++ ){
      T = S;
      T.erase(i, j);
      if ( T == "keyence" ){
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  
  cout << "NO" << endl;
  
}