#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  string s;
  cin >> s;
  long long n = s.length();
  if (n == 7) {
    cout << (s == "keyence" ? "YES" : "NO") << endl;
    return 0;
  }
  for (long long i = 0; i < n - 7; i++) {
    for (long long j = 0; j < 7; j++) {
      string a = s.substr(i, j);
      for (long long k = i + 1; k < n - 7 + j + 1; k++) {
        string b = s.substr(k, 7 - j);
        if (a + b == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
