#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (equal(s.begin(), s.begin() + 6, "keyence")) {
    cout << "YES" << endl;
  } else if (equal(s.end() - 7, s.end() - 1, "keyence")) {
    cout << "YES" << endl;
  } else if (s[0] == 'k') {
    if (s[1] == 'e') {
      if (s[2] == 'y') {
        if (s[3] == 'e') {
          if (s[4] == 'n') {
            if (s[5] == 'c') {
              if (equal(s.end() - 1, s.end() - 1, "e")) {
                cout << "YES" << endl;
              }
            } else if (equal(s.end() - 2, s.end() - 1, "ce")) {
              cout << "YES" << endl;
            }
          } else if (equal(s.end() - 3, s.end() - 1, "nce")) {
            cout << "YES" << endl;
          }
        } else if (equal(s.end() - 4, s.end() - 1, "ence")) {
          cout << "YES" << endl;
        }
      } else if (equal(s.end() - 5, s.end() - 1, "yence")) {
        cout << "YES" << endl;
      }
    } else if (equal(s.end() - 6, s.end() - 1, "eyence")) {
      cout << "YES" << endl;
    }
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
