#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string ans = "NO";
  string str = s, key = "keyence", keyr = key;
  reverse(str.begin(), str.end());
  reverse(keyr.begin(), keyr.end());
  int a = key.size();
  if (s.substr(0, a - 1) == key || str.substr(0, a - 1) == keyr) {
    ans = "YES";
  }
  for (int i = 0; i < a; ++i) {
    if (s.substr(0, i) == key.substr(0, i)) {
      if (str.substr(0, a - i - 1) == keyr.substr(0, a - i - 1)) {
        ans = "YES";
        break;
      }
    }
  }
  cout << ans << endl;
}
