#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string key = "keyence";
  int count = 0;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == key[count]) {
      count++;
      if (count == 7) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
