#include <bits/stdc++.h>
using namespace std;
int dy[5] = {0, 0, 1, -1, 0};
int dx[5] = {1, -1, 0, 0, 0};
int main(void) {
  string s;
  bool flag = false;
  cin >> s;
  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 (s[6] == 'e') {
                flag = true;
              }
            } else {
              if (s.rfind("ce") == s.size() - 2) {
                flag = true;
              }
            }
          } else {
            if (s.rfind("nce") == s.size() - 3) {
              flag = true;
            }
          }
        } else {
          if (s.rfind("ence") == s.size() - 4) {
            flag = true;
          }
        }
      } else {
        if (s.rfind("yence") == s.size() - 5) {
          flag = true;
        }
      }
    } else {
      if (s.rfind("eyence") == s.size() - 6) {
        flag = true;
      }
    }
  } else {
    if (s.rfind("keyence") == s.size() - 7) {
      flag = true;
    }
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
