#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string a = "keyence";
  int ans = 0;
  cin >> s;
  for (int i = 0; i < a.length(); ++i) {
    for (int j = 0; j < s.length(); ++j) {
      if (a[i] != s[j]) {
        if (ans == 0) {
          for (; j < s.length(); ++j) {
            if (a[i] == s[j]) break;
          }
          if (a[i] == s[j]) {
            ++i;
            ans = 1;
          }
        } else if (ans == 1) {
          ans = 2;
        }
      } else {
        ++i;
      }
    }
  }
  if (ans == 2) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
  return 0;
}
