#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t;
  cin >> s;
  t = s;
  if (s == "keyence") {
    cout << "YES";
    return 0;
  } else {
    for (int i = 0; i < s.size(); i++) {
      for (int j = i + 1; j < s.size(); j++) {
        s = t;
        s.erase(i, j);
        if (s == "keyence") {
          cout << "YES";
          return 0;
        }
      }
    }
  }
  cout << "NO";
}
