#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
const int MOD = (int)1e9 + 7;
const int INF = (int)1e9;
const int dx[] = {0, 1, 0, -1};
const int dy[] = {1, 0, -1, 0};
const int ddx[] = {0, 1, 1, 1, 0, -1, -1, -1};
const int ddy[] = {1, 1, 0, -1, -1, -1, 0, 1};
int main() {
  string s;
  cin >> s;
  for (int i = 0; i <= s.size() - 7; i++) {
    for (int j = i; j <= s.size() - min(7, i); j++) {
      for (int k = 0; k <= 7; k++) {
        if (j < k) break;
        string mae = s.substr(i, k);
        string usiro = s.substr(j, 7 - k);
        if (mae + usiro == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
