#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, a;
  cin >> s;
  int i, j = 0, k = 0, p = 0;
  a = {"keyence"};
  for (i = 0; i < 7; i++, p++) {
    if (s[i] != a[p]) {
      j = 1;
      break;
    }
  }
  p = 0;
  for (i = s.length() - 7; i < s.length(); i++, p++) {
    if (s[i] != a[p]) {
      k = 1;
      break;
    }
  }
  vector<int> v;
  if (!j || !k)
    cout << "YES" << endl;
  else {
    j = 0;
    for (i = 0; i < s.length(); i++, j++) {
      if (s[i] == a[j])
        continue;
      else {
        k = i;
        break;
      }
    }
    for (i = s.length() - k - 1; i < s.length(); i++, j++) {
      k = 1;
      if (a[j] != s[i]) {
        k = 0;
        break;
      }
    }
    if (k == 1)
      cout << "YES";
    else
      cout << "NO";
  }
}
