#include <bits/stdc++.h>
static const long long MOD = 1000000007;
static const long long INF = 1000000000000000000LL;
using namespace std;
int main() {
  string S;
  cin >> S;
  string ke = "keyence";
  long long ke_cnt = 0;
  for (long long left = 1; left <= 6; ++left) {
    long long right = 7 - left;
    for (long long i = 0; i + right < S.size(); ++i) {
      bool flg = true;
      for (long long j = 0; j < left; ++j) {
        if (S[i + j] != ke[j]) flg = false;
      }
      if (flg == true) {
        for (long long k = i + left; k + right < S.size(); ++k) {
          bool flg2 = true;
          for (long long j = 0; j < right; ++j) {
            if (S[k + j] != ke[j + left]) flg = false;
          }
          if (flg2 == true) {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
