#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  getline(cin, s);
  for (int i = 0; i < s.size(); i++) {
    if (s[i] <= 'Z' && s[i] >= 'A' && s[i] <= 'z' && s[i] >= 'a') {
      cout << "NO" << endl;
      return 0;
    }
  }
  int n = s.size();
  for (int l = 0; l < 7; l++) {
    for (int i = 0; i <= n - l; i++) {
      string p;
      for (int j = 0; j <= n - (7 - l); j++) {
        p = s.substr(i, l) + s.substr(j, 7 - l);
        if (p == k) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
