#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int d = s.size() - 7;
  for (int i = 0; i < s.size() - d; i++) {
    int k = 0;
    string r = s.substr(0, i) + s.substr(i + d, s.size() - i - d);
    cout << "r"
         << ": " << r << " ";
    cout << endl;
    if (t == r) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
