#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  long long r;
  while ((r = a % b) != 0) {
    a = b;
    b = r;
  }
  return b;
}
long long lcm(long long a, long long b) { return (a / gcd(a, b) * b); }
int main(void) {
  string s;
  cin >> s;
  string t = "keyence";
  int i;
  for (i = 0; i < s.size(); i++) {
    if (s[i] != t[i]) {
      break;
    }
  }
  int j;
  for (j = i; j < s.size(); j++) {
    if (s[j] == t[i]) {
      break;
    }
  }
  if (s.size() - j == t.size() - i) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
