#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string K("keyence");
  int l = (int)S.length();
  int d = l - 7;
  if (d == 0) {
    if (S == K)
      cout << "YES";
    else
      cout << "NO";
  } else {
    int flag = 0;
    for (int(i) = 0; (i) < (d); (i)++) {
      string T(S);
      T.erase(T.begin() + i, T.begin() + i + d);
      if (T == K) flag = 1;
    }
    if (flag)
      cout << "YES";
    else
      cout << "NO";
  }
}
