#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
inline int read() {
  int X = 0, w = 0;
  char ch = 0;
  while (!isdigit(ch)) {
    w |= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) X = (X << 3) + (X << 1) + (ch ^ 48), ch = getchar();
  return w ? -X : X;
}
string tar = "keyence";
int main() {
  string s;
  cin >> s;
  if (s == tar) {
    cout << "YES";
  }
  for (int i = 1; i <= 7; i++) {
    string a = s.substr(0, i);
    for (int j = i; j < s.size(); j++) {
      string b = s.substr(j, s.size() - j);
      if (a + b == tar) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
