#include <bits/stdc++.h>
using namespace std;
const long long dx[] = {1, -1, 0, 0};
const long long dy[] = {0, 0, -1, 1};
const double PI = 3.14159265358979323846;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
void print1(T begin, T end) {
  while (begin != end) {
    cout << (*begin) << " ";
    *begin++;
  }
  cout << endl;
}
template <typename T>
void print2(T Array, long long height, long long width) {
  for (long long i = 0; i < height; i++) {
    for (long long j = 0; j < width; j++) {
      cout << " " << Array[i][j];
    }
    cout << endl;
  }
}
string s;
string t = "keyence";
void check1() {
  if (s == "keyence") {
    puts("YES");
    exit(0);
  }
}
void check2() {
  long long first = 0;
  for (long long i = s.size() - 1; i >= 0; i--) {
    if (s[i] == 'k') {
      first = i;
      break;
    }
  }
  long long idx = 0;
  for (long long i = first; i < s.size(); i++) {
    if (s[i] == t[idx]) {
      idx++;
    }
  }
  if (idx == t.size()) {
    puts("YES");
    exit(0);
  }
}
void check3() {
  if (s.substr(0, 7) == "keyence") {
    puts("YES");
    exit(0);
  }
}
void check4() {
  string sr = s;
  reverse((sr).begin(), (sr).end());
  string tr = t;
  reverse((tr).begin(), (tr).end());
  if (s.substr(0, 1) == "k" && sr.substr(0, 6) == "ecneye") {
    puts("YES");
    exit(0);
    return;
  }
  if (s.substr(0, 2) == "ke" && sr.substr(0, 5) == "ecney") {
    puts("YES");
    exit(0);
    return;
  }
  if (s.substr(0, 3) == "key" && sr.substr(0, 4) == "ecne") {
    puts("YES");
    exit(0);
    return;
  }
  if (s.substr(0, 4) == "keye" && sr.substr(0, 3) == "ecn") {
    puts("YES");
    exit(0);
    return;
  }
  if (s.substr(0, 5) == "keyen" && sr.substr(0, 2) == "ec") {
    puts("YES");
    exit(0);
    return;
  }
  if (s.substr(0, 6) == "keyenc" && sr.substr(0, 1) == "e") {
    puts("YES");
    exit(0);
    return;
  }
}
signed main() {
  cin >> s;
  check1();
  check2();
  check3();
  check4();
  puts("NO");
  return 0;
}
