#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  string s;
  cin >> s;
  string t = "keyence";
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] != 'k') continue;
    int pivot = 1;
    int cursor = 0;
    for (int j = i + 1; j < s.size(); ++j) {
      if (s[j] == t[pivot])
        ++pivot;
      else {
        cursor = j;
        break;
      }
    }
    int target_length = t.size() - pivot - 1;
    for (int j = cursor; j < s.size() - target_length; ++j) {
      if (t.substr(pivot, target_length) == s.substr(j, target_length)) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
