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