#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i;
  string s;
  cin >> s;
  long long int len = s.length();
  for (i = 0; i < len; i++) {
    if (s.substr(i, 7) == "keyence") {
      if (i == 0 || i + 6 == len) {
        cout << "YES";
        return 0;
      }
    }
  }
  string s1 = "keyence";
  long long int k = 0;
  i = 0;
  if (s[0] == 'k') {
    while (s[i] == s1[k] && i < len && k < 7) {
      k++;
      i++;
    }
    long long int l = len - 1, k1 = 6, k2 = k1;
    while (s[l] == s1[k1] && k1 >= 0 && l >= 0) {
      k1--;
      l--;
    }
    k2 -= k1;
    if (k2 + k == 7) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
