#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1;
  cin >> s1;
  string s = "keyence";
  if (s1.length() < s.length()) {
    cout << "NO" << endl;
  } else {
    int p = 0;
    int f = 0;
    int m = 0;
    for (int i = 0; i < s1.length(); i++) {
      if (s1[i] == s[p]) {
        p++;
        f = 0;
      } else if (f == 0) {
        m++;
        f = 1;
      }
    }
    if (m > 1 || p < s.length())
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
